KbqContentPanel - a slide-out side panel that shifts adjacent content. Often used to implement a quick preview mode for entities from a table.
The panel can be opened or closed using the toggle(), open() and close() methods.
The panel width is configured using the width, minWidth and maxWidth attributes.
<kbq-content-panel-container width="400" minWidth="300" maxWidth="500">
<kbq-content-panel>...</kbq-content-panel>
</kbq-content-panel-container>The content panel remembers whether it was open and how wide it was dragged, and restores the state after a page reload. On by default — use [useStateSaving]="false" to turn it off on a specific component.
opened is restored only while it is unbound: an application that binds [(opened)] decides when the panel is open. width is always restored — the input is the width the panel starts at, and the persisted one wins over it.
Double-clicking the resizer resets the width to the one width declares, and that reset is persisted. clearSavedState() removes what is stored.
Keys, storage and expiry work the same for every component that persists — see Saving component state.
By default, the ESCAPE key closes the panel, but you can disable this behavior using the disableCloseByEscape attribute:
<kbq-content-panel-container disableCloseByEscape>
<kbq-content-panel>...</kbq-content-panel>
</kbq-content-panel-container>