@onsvisual/svelte-components 0.1.56 → 0.1.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,6 +19,7 @@ export default class Select extends SvelteComponentTyped<{
|
|
|
19
19
|
labelKey?: string;
|
|
20
20
|
groupKey?: string;
|
|
21
21
|
clusterByGroup?: boolean;
|
|
22
|
+
hideIcon?: boolean;
|
|
22
23
|
colors?: any[];
|
|
23
24
|
itemFilter?: Function;
|
|
24
25
|
loadOptions?: Function;
|
|
@@ -56,6 +57,7 @@ declare const __propDef: {
|
|
|
56
57
|
labelKey?: string;
|
|
57
58
|
groupKey?: string | null;
|
|
58
59
|
clusterByGroup?: boolean;
|
|
60
|
+
hideIcon?: boolean;
|
|
59
61
|
colors?: any[];
|
|
60
62
|
itemFilter?: Function;
|
|
61
63
|
loadOptions?: Function;
|
|
@@ -88,6 +88,11 @@
|
|
|
88
88
|
* @type {number}
|
|
89
89
|
*/
|
|
90
90
|
export let width = 30;
|
|
91
|
+
/**
|
|
92
|
+
* Hide the icon in the search box
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
*/
|
|
95
|
+
export let hideIcon = false;
|
|
91
96
|
/**
|
|
92
97
|
* An array of colours for multi-select
|
|
93
98
|
* @type {array}
|
|
@@ -159,7 +164,7 @@
|
|
|
159
164
|
itemId="{idKey}"
|
|
160
165
|
label="{labelKey}"
|
|
161
166
|
groupBy="{groupKey && clusterByGroup ? (item) => item[groupKey] : null}"
|
|
162
|
-
showChevron="{
|
|
167
|
+
showChevron="{!hideIcon}"
|
|
163
168
|
multiple="{multiple}"
|
|
164
169
|
clearable="{clearable}"
|
|
165
170
|
on:change="{handleChange}"
|