$ons.modifier

使い方


ons.modifier.add(myOnsInputElement, 'underbar');
ons.modifier.toggle(myOnsToastElement, 'custom-modifier');
シグネチャ 概要
add(element, modifier [, modifier]) Add the specified modifiers to the element if they are not already included. (翻訳中)
remove(element, modifier [, modifier]) Remove the specified modifiers from the element if they are included. (翻訳中)
contains(element, modifier) Check whether the specified modifier is included in the element. (翻訳中)
toggle(element, modifier [, force]) Toggle the specified modifier. (翻訳中)
add(element, modifier [, modifier])

Add the specified modifiers to the element if they are not already included. (翻訳中)

パラメーター
名前 概要
element HTMLElement Target element. (翻訳中)
modifier String Name of the modifier. (翻訳中)
remove(element, modifier [, modifier])

Remove the specified modifiers from the element if they are included. (翻訳中)

パラメーター
名前 概要
element HTMLElement Target element. (翻訳中)
modifier String Name of the modifier. (翻訳中)
contains(element, modifier): Boolean

Check whether the specified modifier is included in the element. (翻訳中)

返り値:

パラメーター
名前 概要
element HTMLElement Target element. (翻訳中)
modifier String Name of the modifier. (翻訳中)
toggle(element, modifier [, force])

Toggle the specified modifier. (翻訳中)

パラメーター
名前 概要
element HTMLElement Target element. (翻訳中)
modifier String Name of the modifier. (翻訳中)
force String If it evaluates to true, add specified modifier value, and if it evaluates to false, remove it. (翻訳中)

お困りですか?

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

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

あわせて、下記の情報も参考にしてください。