Side Panel
Panel zadokowany obok strony, z nagłówkiem, tytułem, akcjami, przyciskiem zamknięcia i przewijaną treścią.
Dostępny w
Angular: dostępny Vue: dostępny React: dostępny React Native: jeszcze niedostępny
Użycie
Weekly sync — the note stays in place while the panel docks beside it.
<div class="demo-row" style="align-items: stretch; width: 100%; min-height: 280px">
<div class="demo-stack" style="flex: 1">
<p>Weekly sync — the note stays in place while the panel docks beside it.</p>
@if (!open()) {
<button soneBtn variant="outline" type="button" (click)="open.set(true)">Open details</button>
}
</div>
@if (open()) {
<aside soneSidePanel aria-labelledby="side-panel-demo-title">
<header soneSidePanelHeader>
<h2 soneSidePanelTitle id="side-panel-demo-title">Details</h2>
<div soneSidePanelActions>
<sone-side-panel-close label="Close details" (closed)="open.set(false)" />
</div>
</header>
<div soneSidePanelContent>
<p>Created 9 October · 3 participants · 42 minutes.</p>
</div>
</aside>
}
</div>Import
import {
SoneSidePanelActionsDirective,
SoneSidePanelCloseComponent,
SoneSidePanelContentDirective,
SoneSidePanelDirective,
SoneSidePanelHeaderDirective,
SoneSidePanelTitleDirective,
} from "@surface-one/angular/side-panel";Dokumentacja API
SoneSidePanelActionsDirectiveDyrektywa
SoneSidePanelCloseComponentKomponent
| Nazwa | Typ | Domyślnie |
|---|---|---|
labelwymagane | string | — |
| Nazwa | Typ |
|---|---|
closed | void |