ItemSelected
A list of JSKOS items where items can be reordered and removed from.
It supports three views:
list— list rendering viaItemListtags— inline list of compact tagstable— rows with ordering controls (up/down)
Uses ItemName to display items.
Props
modelValuearray, default[]— selected items. Use watch option{ deep: true }to get change events.viewstring, default"tags"— display mode:"tags" | "table" | "list"orderableboolean, defaultfalse— show move up/down buttons intableviewitemNameOptionsobject, default{ draggable: false }—
props forwarded toItemName- Field
draggableis set tofalse, unless explicitly enabled
- Field
removableboolean, defaultfalse— iftrue, show a remove icon inview="list"(like Cocoda)removeableboolean, defaultfalse— legacy spelling, treated likeremovable
Events
select
Emitted with payload{ item }when the user clicks on an item
CSS variables and classes
--jskos-vue-itemSelected-tags-bgColor— background color of tags. Set to--jskos-vue-highlight-bgColorby default.--jskos-vue-itemSelected-tags-color— text color of tags. Set toinheritby default.
Example
View: