chore: add more type docs

This commit is contained in:
Eric Liu 2020-07-25 11:30:45 -07:00
commit c3f924c25a
45 changed files with 517 additions and 50 deletions

View file

@ -1,4 +1,8 @@
<script>
/**
* Specify the element to append the calendar to
* @type {HTMLElement} [appendTo=document.body]
*/
export let appendTo = document.body;
export let dateFormat = "m/d/Y";
export let datePickerType = "simple";
@ -159,8 +163,8 @@
class:bx--date-picker={true}
class:bx--date-picker--short={short}
class:bx--date-picker--light={light}
class="{datePickerType && `--date-picker--${datePickerType}`}
{datePickerType === 'range' && $labelTextEmpty && '--date-picker--nolabel'}">
class="{datePickerType && `bx--date-picker--${datePickerType}`}
{datePickerType === 'range' && $labelTextEmpty && 'bx--date-picker--nolabel'}">
<slot />
</div>
</div>