(alias: dropdown
)
The default slot is the menu. It can be filled with <s-option>
that are basically short-cuts for <div class="item">
with these two proprieties:
value
text
Note: One can give a different text and html content to the option by giving the attribute and a content. When semantic-ui refers to text, it refers to the attribute content.
The bar is the closed combo-box. If not given, it will default to
<div v-if="placeholder" class="default text">{{placeholder}}</div>
<span class="text">{{text}}</span>
<i v-if="icon" :class="[icon, 'icon']"></i>
The v-model
is the selected value and raises the select
event on change.
If no bar
named-slot is given, it will display:
icon
(default: 'dropdown')text
(also modified by code and user)placeholder
These properties forward directly to the jQuery initialisation :
on
: stringforceSelection
: booleanallowCategorySelection
: booleandirection
: 'auto'|'upward'|'downward'keepOnScreen
: booleanfullTextSearch
: boolean|'exact'showOnFocus
: booleanallowTab
: booleantransition
: 'auto'|'slide down'|'slide up'duration
: numberminCharacters
: numbermatch
: 'both'|'text'|'value'preserveHTML
: booleanaction
: 'activate'|'select'|'combo'|'nothing'|'hide'|'command' In the case ofcommand
, it will raise thecommand
event and take no other action on selection.
change(value)
is raised when the value changedcommand(value)
is raised when a value is clicked andaction
iscommand
add(value, text, element)
when an element is addedremove(value, text, element)
when an element is removednoResult(searchValue)
when a research returns an empty result
hide(): void
- can cancel the operation by throwing"cancel"
show(): void
- can cancel the operation by throwing"cancel"
visible(): boolean
clear(): void
The multiple selection is still untested