Side Panel
Ein neben der Seite angedocktes Panel mit Kopfzeile, Titel, Aktionen, Schließen-Schaltfläche und scrollbarem Inhalt.
Verfügbar für
Angular: verfügbar Vue: verfügbar React: verfügbar React Native: noch nicht verfügbar
Verwendung
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";API-Referenz
SoneSidePanelActionsDirectiveDirektive
SoneSidePanelCloseComponentKomponente
| Name | Typ | Standard |
|---|---|---|
labelerforderlich | string | — |
| Name | Typ |
|---|---|
closed | void |