mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 20:09:35 +00:00
Run "yarn build:docs"
This commit is contained in:
parent
91348df434
commit
94472817a8
3 changed files with 48 additions and 10 deletions
|
@ -3865,8 +3865,10 @@ None.
|
|||
### Props
|
||||
|
||||
| Prop name | Required | Kind | Reactive | Type | Default value | Description |
|
||||
| :-------------- | :------- | :--------------- | :------- | ------------------------- | ------------------------------------------------ | ------------------------------------------------------ |
|
||||
| disableSorting | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable sorting on this specific cell |
|
||||
| :-------------- | :------- | :--------------- | :------- | ---------------------------------------------------------- | ------------------------------------------------ | -------------------------------------- |
|
||||
| sortable | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` for the sortable variant |
|
||||
| sortDirection | No | <code>let</code> | No | <code>"none" | "ascending" | "descending"</code> | <code>"none"</code> | Specify the sort direction |
|
||||
| active | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` if the column sorting |
|
||||
| scope | No | <code>let</code> | No | <code>string</code> | <code>"col"</code> | Specify the `scope` attribute |
|
||||
| translateWithId | No | <code>let</code> | No | <code>() => string</code> | <code>() => ""</code> | Override the default id translations |
|
||||
| id | No | <code>let</code> | No | <code>string</code> | <code>"ccs-" + Math.random().toString(36)</code> | Set an id for the top-level element |
|
||||
|
|
|
@ -11843,9 +11843,33 @@
|
|||
"filePath": "src/DataTable/TableHeader.svelte",
|
||||
"props": [
|
||||
{
|
||||
"name": "disableSorting",
|
||||
"name": "sortable",
|
||||
"kind": "let",
|
||||
"description": "Set to `true` to disable sorting on this specific cell",
|
||||
"description": "Set to `true` for the sortable variant",
|
||||
"type": "boolean",
|
||||
"value": "false",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
"isRequired": false,
|
||||
"constant": false,
|
||||
"reactive": false
|
||||
},
|
||||
{
|
||||
"name": "sortDirection",
|
||||
"kind": "let",
|
||||
"description": "Specify the sort direction",
|
||||
"type": "\"none\" | \"ascending\" | \"descending\"",
|
||||
"value": "\"none\"",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
"isRequired": false,
|
||||
"constant": false,
|
||||
"reactive": false
|
||||
},
|
||||
{
|
||||
"name": "active",
|
||||
"kind": "let",
|
||||
"description": "Set to `true` if the column sorting",
|
||||
"type": "boolean",
|
||||
"value": "false",
|
||||
"isFunction": false,
|
||||
|
|
16
types/DataTable/TableHeader.svelte.d.ts
vendored
16
types/DataTable/TableHeader.svelte.d.ts
vendored
|
@ -4,10 +4,22 @@ import type { SvelteComponentTyped } from "svelte";
|
|||
export interface TableHeaderProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["th"]> {
|
||||
/**
|
||||
* Set to `true` to disable sorting on this specific cell
|
||||
* Set to `true` for the sortable variant
|
||||
* @default false
|
||||
*/
|
||||
disableSorting?: boolean;
|
||||
sortable?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the sort direction
|
||||
* @default "none"
|
||||
*/
|
||||
sortDirection?: "none" | "ascending" | "descending";
|
||||
|
||||
/**
|
||||
* Set to `true` if the column sorting
|
||||
* @default false
|
||||
*/
|
||||
active?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the `scope` attribute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue