Closed michaeldoye closed 3 years ago
Fixes #30
Optionally pass default MatProgressButtonOptions in forRoot in side your app.modlue.ts for each button as an array.
MatProgressButtonOptions
forRoot
const button1: MatProgressButtonOptions = { id: 'button1', // Id should match the [buttonId] input ... }; @NgModule({ imports: [ MatProgressButtonsModule.forRoot([button1]), ], declarations: [HomeComponent], })
[buttonId]
<mat-bar-button (btnClick)="handleClick()" [buttonId]="'button1'" [active]="buttonActiveState" ></mat-bar-button>
[options] will override Global Options provided in forRoot
[options]
Fixes #30
Global Options
Optionally pass default
MatProgressButtonOptions
inforRoot
in side your app.modlue.ts for each button as an array.NB: add the id above should match the id provided in the
[buttonId]
input.[options]
will override Global Options provided inforRoot