vue-smooth-dnd
vue-smooth-dnd copied to clipboard
What props can be passed to draggables?
The docs show class
, which I tried and it works.
I tried adding a data-*
attribute, but it doesn't seem to render. Should it?
>
<Draggable v-for="tab in window.tabs"
:key="tab.tabId"
:tag="{
value: 'article',
props: {
'data-selected': Math.random() > 0.5,
class: 'test'
}
}"
>
<TabItem