OrionSelect
<o-select>
affiche une liste déroulante personnalisable.
Usage
SelectData SelectFormat SelectFetch SelectSlot SelectPlayground
Props
Name
autocomplete
boolean = false
autofocus
boolean = false
clearable
boolean = false
clearToNull
boolean = false
customFetch
(searchTerm?: string) => Promise<BaseVModelType[]> = undefined
customSearch
Function = undefined
disabled
boolean = false
disabledKey
string = undefined
displayKey
string = undefined
donetyping
number = 600
fetchInitialOptions
Array = () => []
fetchKey
string = 'search'
fetchMethod
'GET' | 'POST' = 'GET'
fetchMinSearch
number = 1
fetchUrl
string = undefined
forceLabelFloating
boolean = false
inheritValidationState
boolean = undefined
label
string = undefined
modelValue
T = undefined
multiple
boolean = false
options
BaseVModelType[] = () => []
prefillSearch
string = undefined
prefixFontIcon
string = undefined
prefixIcon
Orion.Icon = undefined
readonly
boolean = false
required
boolean = false
searchable
boolean = false
selectOnFocus
boolean = false
size
Orion.Size = 'md'
suffixFontIcon
string = undefined
suffixIcon
Orion.Icon = undefined
trackKey
string = 'id'
type
string | Orion.DatepickerType = 'text'
validation
string | ((val: any) => boolean) | Orion.Validator.Rule | Orion.Validation.Rule | boolean = undefined
validationErrorMessage
string = undefined
valueKey
string = undefined
Events
Name
Payload type
focus
FocusEvent
blur
FocusEvent
input
VModelType
input-keydown-tab
No payload
change
VModelType
update:modelValue
VModelType
clear
No payload
add
BaseVModelType
remove
BaseVModelType
select
BaseVModelType
fetch-start
string
fetch-end
BaseVModelType[]
fetch-search-clear
No payload
Slots
Name
Bindings
value
item:
any
display:
any
value
item:
any
display:
any
multiple-value
value:
BaseVModelType[]
before-options
options:
BaseVModelType[]
option
item:
any
index:
number
marked-search:
(content: string) => string
after-options
options:
BaseVModelType[]
PublicInstance
Name
Type
getSearchTerm
() => string | undefined
setSearchTerm
(val?: string) => string | undefined
triggerSearchAsync
(term?: string) => Promise<void>
hasBeenFocus
() => boolean
isFocus
() => boolean
focus
() => void
blur
Lodash.debounce
clear
() => void
setHasBeenFocus
(value: boolean) => void
isValid
() => boolean
_input
() => HTMLInputElement | undefined