v-list-item-group
は、選択可能な v-list-item
のグループを作成する機能を提供します。 v-list-item-group
コンポーネントは、コアで v-item-group を利用し、インタラクティブなリストのためのクリーンなインターフェースを提供します。
デフォルトでは、v-list-item-group
はv-item-group
と同様に動作します。 value が提供されない場合、グループはそのインデックスに基づいてデフォルト値を提供します。
以下に、簡単な例から複雑な例まで示します。
You can easily disable the default highlighting of selected v-list-item
s. This creates a lower profile for a user's choices.
複数の項目を一度に選択できます。
At least one item must be selected.
You can set a class which will be added when an item is selected.
Using the default slot, you can access an items internal state and toggle it. Since the active property is a boolean, we use the true-value prop on the checkbox to link its state to the v-list-item
.
Caught a mistake or want to contribute to the documentation?
Edit Layout
on GitHub!