Table

列テンプレートで定義する高密度のデータテーブル。キャプションと空の状態に対応します。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 未対応

使い方

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

インポート

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

API リファレンス

SoneTableColumnComponentコンポーネント

セレクター
sone-table-column
入力
名前型 デフォルト
key必須string—
headerstring""
hideHeaderbooleanfalse
widthstring | nullnull
alignEndbooleanfalse
sort

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

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

SoneTableComponentコンポーネント

セレクター
sone-table
入力
名前型 デフォルト
rows必須readonly T[]—
trackBy必須(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