Angular Tabs - Overview

The Tabs is a tab strip used to switch between pages or views. This UI component is included in the TabPanel UI component, but you can use the Tabs separately as well.

View Demo

The following code adds the Tabs UI component to your page. One of the tabs has an icon, another has a badge.

HTML
TypeScript
  • <dx-tabs
  • [items]="tabs">
  • </dx-tabs>
  • import { DxTabsModule } from "devextreme-angular";
  • // ...
  • export class AppComponent {
  • tabs = [
  • { text: "User", icon: 'user' },
  • { text: "Comment", badge: "New" },
  • { text: "Find" }
  • ];
  • }
  • @NgModule({
  • imports: [
  • // ...
  • DxTabsModule
  • ],
  • // ...
  • })

Note that field names in these data source items are conventional. This provides a default appearance for tabs, which can be customized later.

See Also