Table

Un tableau de données dense défini par des modèles de colonnes, avec légende et état vide.

Disponible pour
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: pas encore disponible

Utilisation

Notes modified in the last 30 days.
Title Folder Last modified Actions
Q4 planning — decisions and ownersProductSep 24
Hiring loop debriefPeopleSep 22
Research synthesis: onboarding interviewsResearchSep 19
Vendor call — licensing termsLegalSep 12

Importation

ts
import {
  SoneTableColumnComponent,
  SoneTableComponent,
} from "@surface-one/angular/table";

Référence de l’API

SoneTableColumnComponentComposant

Sélecteur
sone-table-column
Inputs
NomType Par défaut
keyobligatoirestring—
headerstring""
hideHeaderbooleanfalse
widthstring | nullnull
alignEndbooleanfalse
sort

The header's `aria-sort`; set it on the sorted column only.

"ascending" | "descending" | "none" | nullnull

SoneTableComponentComposant

Sélecteur
sone-table
Inputs
NomType Par défaut
rowsobligatoirereadonly T[]—
trackByobligatoire(row: T) => unknown—
rowClass(row: T) => Record<string, boolean>() => ({})
isSelected(row: T) => boolean() => false
captionstring | nullnull
emptyTextstring | nullnull
columns

The columns as data (`{ key, header, cell }`), like the Vue and React twins — an alternative to `<sone-table-column>` children, which win when both are given.

readonly SoneTableColumn<T>[] | nullnull