Angular Sidenav
- See Demo
Table of contents
Features
- Simple sidenav with hidden and collapsed view.
- Variable properties and event bindings.
- Custom template.
Getting started
angular-ng-sidenav
:
Step 1: Install NPM
npm i angular-ng-sidenav
Step 2: Import the SidenavLibModule:
; @ {}
Usage sample
Sidenav content Main content
isExpanded = true; state = 'collapsed'; { thisisExpanded = !thisisExpanded; }
API
Inputs
Input | Type | Default | Required | Description |
---|---|---|---|---|
expanded | boolean |
null |
yes | Whether drawer is open or close depend on drawer state. |
drawerState | string |
null |
yes | Drawer state (expanded, collapsed, hidden). |
color | string |
#19222a |
no | Sidenav color |
drawerWidth | string |
250px |
no | Drawer width by default. |
drawerWidthCollapsed | string |
80px |
no | drawer default width on collapsed view by default. |
*hiddenOnCollapsed | boolean |
false |
no | show/hide some elements inside sidenav when drawer state changes from or to collapsed. |
Author
License
MIT