Flexible autocomplete/select component written in Svelte,
MIT License
value
property is reactive (#41), which results in:
selection
propertyreadSelection
property - behaves as the selection
one, but it is read-only nowvalue
property by default accepts valueField
value. If you were using Svelecte with objects as bound values, set valueAsObject
// v2.3.2 and below - you could assign object or array of objects as selection property
<Svelecte bind:selection={myObject}></Svelecte>
/** v3.0+ */
// `value` property handle selection and it binds value property of the object
<Svelecte bind:value={myProp}></Svelecte>
// if object is desired, set 'valueAsObject' property
<Svelecte bind:value={myObject} valueAsObject></Svelecte>
The custom-element version and documentation is back in main repo to ease further development for me (and possibly others) 😉
options
array (#32)disabledField
- which property should mark given item as disabled, to handle BC break mentioned belowallowEditing
- toggle to edit newly created itemkeepCreated
-whether add newly created items to option listdisabled
status of option items, but now configurable