Drawer
Import
Import TableauUiDrawerModule from tableau-ui-angular/drawer.
Drawers
tab-drawer-container holds the content and up to two tab-drawer elements, one per side, and fills its parent. Each drawer and the content scroll on their own.
| Input | What it does |
|---|---|
[(isOpen)] | Opens and closes the drawer |
position | left, the default, or right |
width | Required. The drawer's width |
padding | Half the gap between the drawer and the content, 0.5rem by default |
border | The border between them, a CSS border |
Filters
Filter 1
Filter 2
Filter 3
Filter 4
Filter 5
Filter 6
Filter 7
Filter 8
Filter 9
Filter 10
Filter 11
Filter 12
Filter 13
Filter 14
Filter 15
Filter 16
Filter 17
Filter 18
Filter 19
Filter 20
Report
Line 1 of the report, which moves aside for each drawer that opens.
Line 2 of the report, which moves aside for each drawer that opens.
Line 3 of the report, which moves aside for each drawer that opens.
Line 4 of the report, which moves aside for each drawer that opens.
Line 5 of the report, which moves aside for each drawer that opens.
Line 6 of the report, which moves aside for each drawer that opens.
Line 7 of the report, which moves aside for each drawer that opens.
Line 8 of the report, which moves aside for each drawer that opens.
Line 9 of the report, which moves aside for each drawer that opens.
Line 10 of the report, which moves aside for each drawer that opens.
Line 11 of the report, which moves aside for each drawer that opens.
Line 12 of the report, which moves aside for each drawer that opens.
Line 13 of the report, which moves aside for each drawer that opens.
Line 14 of the report, which moves aside for each drawer that opens.
Line 15 of the report, which moves aside for each drawer that opens.
Line 16 of the report, which moves aside for each drawer that opens.
Line 17 of the report, which moves aside for each drawer that opens.
Line 18 of the report, which moves aside for each drawer that opens.
Line 19 of the report, which moves aside for each drawer that opens.
Line 20 of the report, which moves aside for each drawer that opens.
Details
Detail 1
Detail 2
Detail 3
Detail 4
Detail 5
Detail 6
Detail 7
Detail 8
Detail 9
Detail 10
Detail 11
Detail 12
Detail 13
Detail 14
Detail 15
Detail 16
Detail 17
Detail 18
Detail 19
Detail 20
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
import { TableauUiCheckboxModule } from 'tableau-ui-angular/checkbox';
import { TableauUiDrawerModule } from 'tableau-ui-angular/drawer';
@Component({
selector: 'app-drawer-basic-example',
imports: [TableauUiCheckboxModule, TableauUiDrawerModule],
templateUrl: './drawer-basic.example.html',
styleUrl: './drawer-basic.example.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class DrawerBasicExampleComponent {
protected readonly $leftOpen = signal(false);
protected readonly $rightOpen = signal(true);
// Enough lines that the content and each drawer scroll on their own
protected readonly lines = Array.from({ length: 20 }, (_, index) => index + 1);
}Accessibility
- A closed drawer is inert: Tab skips it, and screen readers don't read it.
- The app moves focus into a drawer it opens once it renders, in
afterNextRender, such as to its heading, as the dashboard does, so a keyboard user doesn't tab through the page to reach it. Until then the drawer is still inert, and focus can't go in. - A drawer that opens after its first render puts focus back where it was before it opened, when it closes with focus inside and that element is still in the page.
- A drawer open from its first render has nowhere to put focus back, so the app moves focus when it closes that drawer.