chore: complete first pass of apply jsdoc annotations to component props

This commit is contained in:
Eric Liu 2020-07-26 17:42:12 -07:00
commit f30755b237
97 changed files with 2327 additions and 259 deletions

View file

@ -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";