mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore: complete first pass of apply jsdoc annotations to component props
This commit is contained in:
parent
566a281d81
commit
f30755b237
97 changed files with 2327 additions and 259 deletions
|
@ -1,17 +1,52 @@
|
|||
<script>
|
||||
/**
|
||||
* Specify the data table headers
|
||||
* @type {{key: string; value: string;}} [headers=[]]
|
||||
*/
|
||||
export let headers = [];
|
||||
|
||||
/**
|
||||
* Specify the rows the data table should render
|
||||
* keys defined in `headers` are used for the row ids
|
||||
* @type {Object[]} [rows=[]]
|
||||
*/
|
||||
export let rows = [];
|
||||
|
||||
/**
|
||||
* Set the size of the data table
|
||||
* @type {"compact" | "short" | "tall"} [size]
|
||||
*/
|
||||
export let size = undefined;
|
||||
|
||||
/**
|
||||
* Specify the title of the data table
|
||||
* @type {string} [title=""]
|
||||
*/
|
||||
export let title = "";
|
||||
|
||||
/**
|
||||
* Specify the description of the data table
|
||||
* @type {string} [description=""]
|
||||
*/
|
||||
export let description = "";
|
||||
|
||||
/**
|
||||
* Set to `true` to use zebra styles
|
||||
* @type {boolean} [zebra=false]
|
||||
*/
|
||||
export let zebra = false;
|
||||
|
||||
/**
|
||||
* Set to `true` for the sortable variant
|
||||
* @type {boolean} [sortable=false]
|
||||
*/
|
||||
export let sortable = false;
|
||||
|
||||
/**
|
||||
* Set to `true` to enable a sticky header
|
||||
* @type {boolean} [stickyHeader=false]
|
||||
*/
|
||||
export let stickyHeader = false;
|
||||
export let rows = [];
|
||||
export let headers = [];
|
||||
|
||||
import { createEventDispatcher, setContext } from "svelte";
|
||||
import { writable, derived } from "svelte/store";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue