ngx-aside
TypeScript icon, indicating that this package has built-in type declarations

1.4.2 • Public • Published

NgxAside

Angular Aside Component. Simple Angular Sidebar Panel.


Demo


Installation

npm install --save ngx-aside
yarn add ngx-aside

Usage

//app.module.ts
import { NgxAsideModule } from 'ngx-aside';
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>
 

Demo

Live Demo

Package Sidebar

Install

npm i ngx-aside

Weekly Downloads

21

Version

1.4.2

License

none

Unpacked Size

201 kB

Total Files

29

Last publish

Collaborators

  • passenger6