Skip to content
@ng-doc/app / Class

NgDocTabsComponent

Tabs of a page: grouped code blocks, or any content that Markdown wraps in <ng-doc-tab group="…" name="…"> elements.

Decorators
@Component
Selectors
ng-doc-tabs
Implements
OnInit
DeclarationTypeScript
@Component({ … })
export class NgDocTabsComponent implements OnInit { … }

Members

Properties

3
activeIndex: Signal<number>
protectedreadonly

Index of the tab that opens first: the one marked active, or the first.

contentTabs: Signal<boolean>
protectedreadonly

Whether the tabs hold page content rather than a code group. A code group has one code block per tab and is drawn as one framed code surface; content tabs are only a tab bar over their content, so a framed demo or code block inside them doesn't sit in a second frame.

readonly input()

The tabs; their content is moved into the open panel.

Methods

2
(…): void

Moves a tab's content into its panel.

(): void
implements OnInit
—
Symbol
Kind
Class
Decorators
@Component
Selectors
ng-doc-tabs
Implements
OnInit
Scope
@ng-doc/app
Edit this page