Skip to main content

Interface: SdvTableOwnProps<Row>

Defined in: packages/sdvtables/src/react/index.tsx:67

<SdvTable/> building and owning its engine from spec and rows.

Type Parameters​

Row​

Row

Properties​

css?​

optional css?: "none" | "inline"

Defined in: packages/sdvtables/src/react/index.tsx:79

"none" leaves the theme stylesheet out


interactive?​

optional interactive?: boolean

Defined in: packages/sdvtables/src/react/index.tsx:73

toolbar filters, sort headers and a pager driven by the engine; without it no engine is built


pageSize?​

optional pageSize?: number

Defined in: packages/sdvtables/src/react/index.tsx:75

INITIAL page size (beats spec.interactive.pageSize); like a React default* prop, a later change is ignored


rows​

rows: readonly Row[]

Defined in: packages/sdvtables/src/react/index.tsx:71

the source rows; a new array (an equal copy included) keeps the user's sort, filters, page and selection


sort?​

optional sort?: Sort

Defined in: packages/sdvtables/src/react/index.tsx:77

INITIAL sort; like a React default* prop, a later change is ignored


spec​

spec: TableSpec<Row>

Defined in: packages/sdvtables/src/react/index.tsx:69

the table to build; a later change with the same JSON (functions dropped) keeps the engine and its state


table?​

optional table?: undefined

Defined in: packages/sdvtables/src/react/index.tsx:81

absent: pass a table to render an engine you own (SdvTableLinkedProps)