ractivejs / Ractive-decorators-sortable

Drag and drop items to sort them
http://ractivejs.github.io/Ractive-decorators-sortable/
MIT License
15 stars 21 forks source link

Doesn't work on components.. #4

Open pakastin opened 10 years ago

pakastin commented 10 years ago

If I try to use this on component:

<component decorator="sortable"></component>
'The "intro", "outro" and "decorator" directives have no effect on components.'

..or on component template:

<div class="component" decorator="sortable"></div>
'The sortable decorator only works with elements that correspond to array members'

I think a component user-case is pretty common..

Would it be an option to give the array as a parameter:

<div decorator="sortable:array"></div>