ngx-aside-panel
v17.0.0
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.0.
Downloads
4
Readme
NgxAside
Angular Aside Component. Simple Angular Sidebar Panel. Forked from https://github.com/passenger6/ngx-aside for angular v17
Installation
npm install --save ngx-aside-panel
yarn add ngx-aside-panel
Usage
//app.module.ts
import { NgxAsideModule } from 'ngx-aside-panel';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@NgModule({
imports: [
NgxAsideModule,
BrowserAnimationsModule
]
})
For animations please import the BrowserAnimationsModule
.
<ngx-aside #NgxAsidePanelRight
(cancel)="onCancel()"
(submit)="onSave()"
[title]="'Title'"
[cancelButtonTitle]="'Discard'"
[submitButtonTitle]="'Send'"
[closeOnEscape]="false"
[showOverlay]="false"
[showDefaultFooter]="true"
[showDefaultHeader]="true">
</ngx-aside>
<button (click)="NgxAsidePanelLeft.show()">Show Sidebar panel</button>
You can disable default header and footer of panel
[showDefaultFooter]="false"
[showDefaultHeader]="false"
Add custom header and footer to the panel
<ngx-aside #NgxAsidePanelRight
[showDefaultFooter]="false"
[showDefaultHeader]="false">
<header>My own header with own styles</header>
<footer>
My own footer, with custom buttons
<button (click)="NgxAsidePanelRight.hide()">
Close
</button>
</footer>
</ngx-aside>