Skip to content

Commit

Permalink
feat(accordion): add disabled attribute on card level
Browse files Browse the repository at this point in the history
  • Loading branch information
gpolychronis-amadeus committed Jan 27, 2020
1 parent 4f61496 commit 569592d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accordion/accordion.ts
Expand Up @@ -156,7 +156,7 @@ export interface NgbPanelChangeEvent {
</button>
</ng-template>
<ng-template ngFor let-panel [ngForOf]="panels">
<div class="card">
<div class="card" [attr.disabled]="panel.disabled ? '' : null">
<div role="tab" id="{{panel.id}}-header" [class]="'card-header ' + (panel.type ? 'bg-'+panel.type: type ? 'bg-'+type : '')">
<ng-template [ngTemplateOutlet]="panel.headerTpl?.templateRef || t"
[ngTemplateOutletContext]="{$implicit: panel, opened: panel.isOpen}"></ng-template>
Expand Down

0 comments on commit 569592d

Please sign in to comment.