Row Menu
Menu rozwijane pod wielokropkiem z akcjami dla wiersza, obsługujące kliknięcie poza nim i klawiaturę.
Dostępny w
Angular: dostępny Vue: dostępny React: dostępny React Native: jeszcze niedostępny
Użycie
Weekly sync
<div class="demo-stack">
<div class="demo-row">
<h3 style="margin: 0">Weekly sync</h3>
<sone-row-menu label="Actions for Weekly sync" [prominent]="true">
<div soneMenuGroup>
<p soneMenuLabel>Note</p>
<button soneMenuItem type="button" role="menuitem">Rename</button>
<button soneMenuItem type="button" role="menuitem">Move to folder…</button>
<button soneMenuCheckboxItem type="button" [checked]="pinned()" (click)="pinned.set(!pinned())">Pinned</button>
</div>
<div soneMenuGroup>
<button soneMenuItem variant="destructive" type="button" role="menuitem">Move to trash</button>
</div>
</sone-row-menu>
</div>
<sone-sidebar style="width: 16rem">
<sone-tree-row label="Research" [count]="6">
<sone-row-menu label="Actions for Research">
<button soneMenuItem type="button" role="menuitem">Rename</button>
<button soneMenuItem variant="destructive" type="button" role="menuitem">Delete folder</button>
</sone-row-menu>
</sone-tree-row>
</sone-sidebar>
</div>Import
import {
SoneRowMenuComponent,
} from "@surface-one/angular/row-menu";Dokumentacja API
SoneRowMenuComponentKomponent
| Nazwa | Typ | Domyślnie |
|---|---|---|
labelwymagane | string | — |
disabled | boolean | false |
prominent | boolean | false |
side | RowMenuSide | "bottom" |
sideEdge | string | null | null |
align | RowMenuAlign | "end" |
clipToScrollParents | boolean | true |
tooltip | string | null | null |
| Nazwa | Typ |
|---|---|
openChange | boolean |