0.0.10 • Published 3 months ago

rc-table-lite v0.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

API

Table

PropertyDescriptionTypeDefault
columnsColumns of tableColumnsType[]-
dataSourceData record array to be displayedobject[]-
rowKeyRow's unique key, could be a string or function that returns a stringstring | function(record): stringkey
rowClassNameRow's classNamefunction(record, index): stringkey
scrollWhether the table can be scrollable, configobject-
stickySet sticky header and scroll barboolean{offsetHeader?: number, offsetScroll?: number, getContainer?: () => HTMLElement}-
tableLayoutThe table-layout attribute of table element- | auto | fixedfixed when header/columns are fixed, or using column.ellipsis
onRowSet props on per rowfunction(record, index)-

Column

PropertyDescriptionTypeDefault
alignThe specify which way that column is alignedleft | right | centerleft
classNameThe className of this columnstring-
colSpanSpan of this column's titlenumber-
keyUnique key of this columnstring-
renderRenderer of the table cell. The return value should be a ReactNodefunction(text, record, index) {}-
sorterSort function for local sort, see Array.sort's compareFunctiofunction | boolean | { compare: function, multiple: number }-
titleTitle of this columnReactNode | ({ sortOrder, sortColumn, filters }) => ReactNode-
widthWidth of this columnstring | number-
onCellSet props on per cellfunction(record, rowIndex)-
onHeaderCellSet props on per header cellfunction(record, rowIndex)-
onCellSet props on per cellfunction(record, rowIndex)-
childrenMulti-level header settingsColumn[]-

expandable

PropertyDescriptionTypeDefault
expandedRowClassNameExpanded row's classNamefunction(record, index, indent): string-
expandedRowRenderExpanded container render for each rowfunction(record, index, indent, expanded): ReactNode-
expandedRowKeysCurrent expanded row keysstring[]-
0.0.10

3 months ago

0.0.9

5 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

1.0.0

7 months ago