mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
docs(data-table): update example to desort the Protocol header
As an example, it makes more sense because all the values ("http") are the same.
This commit is contained in:
parent
766ee936ed
commit
7380165298
1 changed files with 4 additions and 4 deletions
|
@ -552,16 +552,16 @@ The slot name for the table header cells is `"cell-header"`.
|
||||||
|
|
||||||
Set `sortable` to `true` to enable table column sorting.
|
Set `sortable` to `true` to enable table column sorting.
|
||||||
|
|
||||||
To disable sorting on a specific column, set `sort` to `false` in the header object passed to `headers`.
|
To disable sorting on a specific column, set `sort` to `false` in the header object passed to the `headers` prop.
|
||||||
|
|
||||||
In the example below, the "Rule" column is not sortable.
|
In the example below, the "Protocol" column is not sortable.
|
||||||
|
|
||||||
<DataTable sortable
|
<DataTable sortable
|
||||||
headers="{[
|
headers="{[
|
||||||
{ key: "name", value: "Name" },
|
{ key: "name", value: "Name" },
|
||||||
{ key: "protocol", value: "Protocol" },
|
{ key: "protocol", value: "Protocol", sort: false },
|
||||||
{ key: "port", value: "Port" },
|
{ key: "port", value: "Port" },
|
||||||
{ key: "rule", value: "Rule", sort: false }
|
{ key: "rule", value: "Rule" }
|
||||||
]}"
|
]}"
|
||||||
rows="{[
|
rows="{[
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue