ابتدائی رسائی کی درخواست کریں

اپنا پہلا نام اور ای میل یا فون نمبر درج کریں۔ ہم 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.

ابتدائی رسائی کی درخواست کریں

اپنا پہلا نام اور ای میل یا فون نمبر درج کریں۔ ہم Tajo تک رسائی کی تفصیلات کے ساتھ آپ سے رابطہ کریں گے۔

خودکار شناخت
AI معاون

السلام علیکم! دستاویزات کے بارے میں کچھ بھی پوچھیں۔