Event fired when the Navigation Drawer has closed.
<igx-nav-drawer (closed)='onClosed()'></igx-nav-drawer>
Event fired as the Navigation Drawer is about to close.
<igx-nav-drawer (closing)='onClosing()'></igx-nav-drawer>
Enables/disables the animation, when toggling the drawer. Set to false
by default.
<igx-nav-drawer [disableAnimation]="true"></igx-nav-drawer>
Enables the use of touch gestures to manipulate the drawer:
// get
let gesturesEnabled = this.navdrawer.enableGestures;
<!--set-->
<igx-nav-drawer [enableGestures]='true'></igx-nav-drawer>
ID of the component
// get
let myNavDrawerId = this.navdrawer.id;
<!--set-->
<igx-nav-drawer id='navdrawer'></igx-nav-drawer>
Width of the drawer in its mini state.
// get
let navDrawerMiniWidth = this.navdrawer.miniWidth;
<!--set-->
<igx-nav-drawer [miniWidth]="'34px'"></igx-nav-drawer>
Event fired when the Navigation Drawer has opened.
<igx-nav-drawer (opened)='onOpened()'></igx-nav-drawer>
Event fired as the Navigation Drawer is about to open.
<igx-nav-drawer (opening)='onOpening()'></igx-nav-drawer>
When pinned the drawer is relatively positioned instead of sitting above content. May require additional layout styling.
// get
let navDrawerIsPinned = this.navdrawer.pin;
<!--set-->
<igx-nav-drawer [pin]='false'></igx-nav-drawer>
Pinned state change output for two-way binding.
<igx-nav-drawer [(pin)]='isPinned'></igx-nav-drawer>
Minimum device width required for automatic pin to be toggled. Default is 1024, can be set to a falsy value to disable this behavior.
// get
let navDrawerPinThreshold = this.navdrawer.pinThreshold;
<!--set-->
<igx-nav-drawer [pinThreshold]='1024'></igx-nav-drawer>
Position of the Navigation Drawer. Can be "left"(default) or "right".
// get
let myNavDrawerPosition = this.navdrawer.position;
<!--set-->
<igx-nav-drawer [position]="'left'"></igx-nav-drawer>
State of the drawer.
// get
let navDrawerIsOpen = this.navdrawer.isOpen;
<!--set-->
<igx-nav-drawer [isOpen]='false'></igx-nav-drawer>
Two-way data binding.
<!--set-->
<igx-nav-drawer [(isOpen)]='model.isOpen'></igx-nav-drawer>
Ignite UI for Angular Navigation Drawer - Documentation
The Ignite UI Navigation Drawer is a collapsible side navigation container commonly used in combination with the Navbar.
Example: