Search input

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">.

Using v-model

Search input are compatible with v-model directive. The only exception are modifiers (as of `vue@2.3). There is, however, a workaround forlazy` 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.


名前 型 / デフォルト値 概要
input-id String Specify the “id” attribute of the inner <input> component. This is useful when using <label for="..."> components. (翻訳中) Optional.
Name 概要
material Displays a Material Design search input. (翻訳中)


Onsen UIに関する質問は、Stack Overflowにてonsen-uiタグを付与してください。Onsen UIチームはあなたの問題解決をお手伝いします。

バグ報告や機能要望については、GitHub Issuesに記載をお願いいたします。