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
|
@ -3864,12 +3864,14 @@ None.
|
||||||
|
|
||||||
### Props
|
### Props
|
||||||
|
|
||||||
| Prop name | Required | Kind | Reactive | Type | Default value | Description |
|
| 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 |
|
||||||
| scope | No | <code>let</code> | No | <code>string</code> | <code>"col"</code> | Specify the `scope` attribute |
|
| sortDirection | No | <code>let</code> | No | <code>"none" | "ascending" | "descending"</code> | <code>"none"</code> | Specify the sort direction |
|
||||||
| translateWithId | No | <code>let</code> | No | <code>() => string</code> | <code>() => ""</code> | Override the default id translations |
|
| active | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` if the column sorting |
|
||||||
| id | No | <code>let</code> | No | <code>string</code> | <code>"ccs-" + Math.random().toString(36)</code> | Set an id for the top-level element |
|
| 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 |
|
||||||
|
|
||||||
### Slots
|
### Slots
|
||||||
|
|
||||||
|
|
|
@ -11843,9 +11843,33 @@
|
||||||
"filePath": "src/DataTable/TableHeader.svelte",
|
"filePath": "src/DataTable/TableHeader.svelte",
|
||||||
"props": [
|
"props": [
|
||||||
{
|
{
|
||||||
"name": "disableSorting",
|
"name": "sortable",
|
||||||
"kind": "let",
|
"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",
|
"type": "boolean",
|
||||||
"value": "false",
|
"value": "false",
|
||||||
"isFunction": 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
|
export interface TableHeaderProps
|
||||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["th"]> {
|
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
|
* @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
|
* Specify the `scope` attribute
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue