src/ui-shell/panel/panel.component.ts
Panel is a component that can be used to display content on the right side of the screen.
Panels are generally activated by and linked to a HeaderAction component.
| selector | cds-panel, ibm-panel |
| template | |
Inputs |
| ariaLabel | |
Type : any
|
|
|
Defined in src/ui-shell/panel/panel.component.ts:26
|
|
| expanded | |
Type : boolean
|
|
Default value : false
|
|
|
Defined in src/ui-shell/panel/panel.component.ts:24
|
|
|
Controls the visibility of the panel |
|
import { Component, Input } from "@angular/core";
/**
* `Panel` is a component that can be used to display content on the right side of the screen.
* `Panel`s are generally activated by and linked to a `HeaderAction` component.
*/
@Component({
selector: "cds-panel, ibm-panel",
template: `
<div
class="cds--header-panel"
[attr.aria-label]="ariaLabel"
[ngClass]="{
'cds--header-panel--expanded': expanded
}">
<ng-content></ng-content>
</div>
`
})
export class Panel {
/**
* Controls the visibility of the panel
*/
@Input() expanded = false;
@Input() ariaLabel;
}