Đăng ký quyền truy cập sớm

Nhập tên của bạn cùng email hoặc số điện thoại. Chúng tôi sẽ liên hệ và gửi thông tin truy cập Tajo.

Navigation Config

The top navigation in Tajo is configured through a TypeScript file that defines the navigation links and their properties.

Configuration File

The navigation is configured in src/docs/config/[language]/navData.json.ts. This file exports an array of navigation items.

src/docs/config/[language]/navData.json.ts
const navConfig: navItem[] = [
{
text: "Introduction",
link: "/docs/getting-started/",
},
{
text: "Components",
link: "/docs/components/",
},
{
text: "External Link",
link: "https://example.com",
newTab: true,
},
];

Each item in the navConfig array has the following properties:

text

  • Type: string
  • Required: Yes

The display text for the navigation link.

  • Type: string
  • Required: Yes

The URL for the navigation link. This can be:

  • An internal path starting with / (e.g., /docs/getting-started/)
  • An external URL (e.g., https://example.com)
  • A hash link (e.g., #features)

newTab

  • Type: boolean
  • Default: false
  • Optional: Yes

When set to true, the link will open in a new tab. This is particularly useful for external links.

Đăng ký quyền truy cập sớm

Nhập tên của bạn cùng email hoặc số điện thoại. Chúng tôi sẽ liên hệ và gửi thông tin truy cập Tajo.

tự động nhận diện
Trợ lý AI

Xin chào! Hãy hỏi tôi về tài liệu.