diff --git a/docs/src/pages/components/Search.svx b/docs/src/pages/components/Search.svx index 3b398cc5..631c992a 100644 --- a/docs/src/pages/components/Search.svx +++ b/docs/src/pages/components/Search.svx @@ -20,13 +20,15 @@ The `Search` component size is extra-large by default. There are [large](#large- ### on:clear -The "clear" event is dispatched when clicking the "X" button in the search input element. +The "clear" event is dispatched when clicking the "X" button or when pressing the "Escape" key. console.log('clear')}/> ### Expandable variant - +Set `expandable` to `true` to use the expandable variant. + + ### Light variant diff --git a/docs/src/pages/components/TreeView.svx b/docs/src/pages/components/TreeView.svx index daaf5205..d97b5057 100644 --- a/docs/src/pages/components/TreeView.svx +++ b/docs/src/pages/components/TreeView.svx @@ -49,7 +49,7 @@ Initial multiple selected nodes can be set using `selectedIds`. ### Expand all nodes -To programmatically expand all nodes, access the component instance using the [bind:this](https://svelte.dev/docs#bind_element) directive and invoke the `TreeView.expandAll()` method to expand all nodes. +To programmatically expand all nodes, access the component instance using the [bind:this](https://svelte.dev/docs#bind_element) directive and invoke the `TreeView.expandAll()` accessor. diff --git a/docs/src/pages/framed/Search/SearchExpandableReactive.svelte b/docs/src/pages/framed/Search/SearchExpandableReactive.svelte new file mode 100644 index 00000000..cc18f09c --- /dev/null +++ b/docs/src/pages/framed/Search/SearchExpandableReactive.svelte @@ -0,0 +1,12 @@ + + + + +
+ +Expanded: +{expanded}