A search input element. The component will automatically render as a Material Design search input on Android devices.
Most attributes that can be used for a normal <input>
element can also be used on the <ons-search-input>
element.
Search input elements are created using the VOnsSearchInput
component. It works almost exactly the same as a normal <input type="search">
tag.
An attribute input-id
is provided to set the ID of the inner native element. This is useful for HTMLLabel
elements: <label for="some-inner-input">
.
Search input are compatible with v-model
directive. The only exception are modifiers. There is, however, a workaround for lazy
modifier:
<v-ons-input v-model="something" model-event="change"></v-ons-input>
This will use change
event instead of input
when updating v-model
.
modifier
attribute<ons-input>
element is used to display a text input.<ons-range>
element is used to display a range slider.<ons-switch>
element is used to display a draggable toggle switch.<ons-select>
element is used to display a select box.<ons-checkbox>
element is used to display a checkbox.<ons-radio>
element is used to display a radio button.Name | Description |
---|---|
material | Displays a Material Design search input. |
Name | Description |
---|---|
update:modelValue | Fired right after the event set in the modelEvent prop. |
Fired right after the event set in the modelEvent prop.
Name | Type | Description |
---|
If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.
For bug reports and feature requests use our GitHub Issues page.