Tree Row

Wiersz drzewa plików z wcięciem, przełącznikiem rozwijania, zaznaczeniem i akcjami.

Dostępny w
  • Angular: dostępny
  • Vue: dostępny
  • React: dostępny
  • React Native: jeszcze niedostępny

Użycie

Import

ts
import {
  SoneTreeRowComponent,
} from "@surface-one/angular/tree-row";

Dokumentacja API

SoneTreeRowComponentKomponent

Nesting is DRAWN, not built: consumers stay FLAT (one `@for` over depth-tagged lines) rather than a recursive component pair, so there is no T2 cycle risk. Owns 100% of the row's visual box so a Meetings row and a Notes row never diverge; feature-specific content projects in as trailing `<ng-content>`. Inside a `[soneTree]` (`@surface-one/angular/tree`) the row becomes a `role="treeitem"` with `aria-level` / `aria-expanded` / `aria-selected` and the tree's roving tabindex; its own buttons leave the Tab order. Outside a tree it renders exactly as before.

Selektor
sone-tree-row
Wejścia
NazwaTyp Domyślnie
labelwymaganestring—
depthnumber0
selectedbooleanfalse
iconTreeRowIcon"folder"
emojistring | nullnull
countnumber | nullnull
expandablebooleanfalse
expandedbooleanfalse
level

`aria-level` inside a `[soneTree]` (default: `depth + 1`).

number | nullnull
hasChildren

Whether the row has children, for `aria-expanded` (default: `expandable`).

boolean | nullnull
Wyjścia
NazwaTyp
activatevoid
toggleExpandvoid