ComboStrap UI - Namespace TOC
Table of Contents
1 - About
A namespace TOC is a navigational component that creates a table of content (TOC) for a namespace. It lays out all pages of a namespace (ie directory) in a list fashion
This component is mostly used in a sidebar or sidekickbar
Since version 1.6
The ntoc was earlier known as the minimap component.
2 - Articles Related
3 - Syntax
<ntoc ns="current">
<index>$id - $title</index>
<page-item>$id - $title</page-item>
<ns-item>$id - $title</ns-item>
</ntoc>
where:
- ns is an attribute that defines the namespace (Default to the namespace of the current page)
- index defines a template for the index page of the namespace Since version 1.7
- ns-item defines a template for each sub-namespace of the namespace Since version 1.7
- page-item defines a template for each page in the namespace
ntoc, index, page-item and ns-item are all superset HTML component.
ntoc is a template component created above the list component.
4 - Example
<ntoc color="info">
<index>
[[$id|$title]]
</index>
<page-item>
<icon name="file"/>[[$id|<pipeline>"$title" | replace("ComboStrap UI - ","")</pipeline>]]
</page-item>
</ntoc>
where the page-item template is composed of:
- an icon
- a link
- ComboStrap UI Components
- Badge
- Blockquote
- Box
- Brand
- Breadcrumb
- Breakpoints (Toggle size)
- Button
- Card
- Card Columns
- Cite
- Code
- Collapse
- Console
- Container
- Disqus
- Dropdown
- File
- Footer
- Grid (Row and Column)
- Nav Group
- Header
- Heading
- Hierarchical Breadcrumb
- HR (Horizontal Rule)
- Icon Component
- Native HTML Inline Icon
- Inote (inline note)
- Jumbotron
- List
- Math
- Navbar
- Navigational Component
- Note
- Namespace TOC
- Pipeline
- Related
- Combo Renderer (Rplus)
- Search
- Sectioning Heading
- Table
- Tabs
- Teaser
- Template
- Title
- Table of Content (TOC)
- Tooltip
- Trail Breadcrumb
- Typo