mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
feat(data-table): allow sorting to be disabled for a specific header
This commit is contained in:
parent
2d5ef94e71
commit
766ee936ed
8 changed files with 79 additions and 46 deletions
|
@ -10,13 +10,14 @@
|
|||
Button,
|
||||
Link,
|
||||
} from "../types";
|
||||
import type { DataTableHeader } from "../types/DataTable/DataTable";
|
||||
import Launch16 from "carbon-icons-svelte/lib/Launch16";
|
||||
|
||||
const headers = [
|
||||
const headers: DataTableHeader[] = [
|
||||
{ key: "name", value: "Name" },
|
||||
{ key: "protocol", value: "Protocol" },
|
||||
{ key: "port", value: "Port" },
|
||||
{ key: "rule", value: "Rule" },
|
||||
{ key: "rule", value: "Rule", sort: false },
|
||||
];
|
||||
const rows = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue