Tab control

bs-tab-control hosts a stack of bs-tab-page children. Each page declares its tab label via the *bsTabPageHeader structural directive; the remaining content of the page is rendered when the tab is active. Use [tabsPosition] to put the strip at the top or bottom, and [border] to draw the standard tab outline.

Basic usage

This is tab 1
This is tab 2
This is tab 3
This is tab 4
This is tab 5
This is tab 6
This is tab 7
This is tab 8
This is tab 9
This is tab 10
This is tab 11
This is tab 12
This is tab 13
This is tab 14
This is tab 15
This is tab 16
This is tab 17
This is tab 18
This is tab 19
This is tab 20

Configuration

  
    
      
        <bs-tab-control [border]="true">
        
    
      
          <bs-tab-page>
        
    
      
            <ng-container *bsTabPageHeader>Tab 1</ng-container>
        
    
      
            <div class="p-3">Content of the first tab.</div>
        
    
      
          </bs-tab-page>
        
    
      
          <bs-tab-page>
        
    
      
            <ng-container *bsTabPageHeader>Tab 2</ng-container>
        
    
      
            <div class="p-3">Content of the second tab.</div>
        
    
      
          </bs-tab-page>
        
    
      
        </bs-tab-control>
        
    
  
    
      
        import { Component } from '@angular/core';
        
    
      
        import {
        
    
      
          BsTabControlComponent,
        
    
      
          BsTabPageComponent,
        
    
      
          BsTabPageHeaderDirective,
        
    
      
        } from '@mintplayer/ng-bootstrap/tab-control';
        
    
      
        
        
    
      
        @Component({
        
    
      
          selector: 'my-tab-control-demo',
        
    
      
          templateUrl: './my-tab-control-demo.component.html',
        
    
      
          imports: [
        
    
      
            BsTabControlComponent,
        
    
      
            BsTabPageComponent,
        
    
      
            BsTabPageHeaderDirective,
        
    
      
          ],
        
    
      
        })
        
    
      
        export class MyTabControlDemoComponent {}