ctify

Theme Controls

Table

Table is a component that allows you to display tabular data.

Usage

Sub Components

NameDescription
Table.Theadthead tag
Table.Tbodytbody tag
Table.Tfoottfoot tag
Table.Thth tag
Table.Trtr tag
Table.Tdtd tag

Props

PropsTypeDescriptionDefault
headersarraytable headerundefined
itemsarraytable bodyundefined
actionsbooleanactionsundefined
pageSizesarraysupported number of rows per pageundefined
initialPaginationStateobjectinitial pagination stateundefined

Events

EventsDescription
onItemEditfired when item edit icon clicked
onItemDeletefired when item delete icon clicked