feat(data-table): support rendering empty table header in skeleton

This commit is contained in:
Eric Y Liu 2021-04-02 11:33:25 -07:00
commit fcf93bb8aa
3 changed files with 13 additions and 2 deletions

View file

@ -1015,6 +1015,12 @@ In the following example, each row in the sortable data table has an overflow me
<DataTableSkeleton headers={[{ value: "Name" }, {value: "Protocol"}, {value:"Port"}, { value: "Rule"}]} rows={10} />
### Skeleton with empty header
Pass an object with `"empty"` set to `true` to render an empty table header column.
<DataTableSkeleton headers={[{ value: "Name" }, {value: "Protocol"}, {value:"Port"}, { value: "Rule"}, { empty: true }]} rows={10} />
### Skeleton without header, toolbar
<DataTableSkeleton showHeader={false} showToolbar={false} />