How change default rendering of plugin? How to take current information about node after drag and drop?
Opened this issue · 0 comments
nurzhannogerbek commented
First of all thanks for this plugin! :)
I have some questions.
- I have tree with next structure:
<ol id="documents" class="list-group">
<li class="list-group-item"> <!-- B -->
<div>Some content</div>
</li>
<li class="list-group-item">
<div>Some content</div>
<ol class="list-group">
<li class="list-group-item"> <!-- A -->
<div>Some content</div>
</li>
<li class="list-group-item">
<div>Some content</div>
</li>
</ol>
</li>
</ol>
When I remove node A and want to make it child of element B by default nestedSortable plugin put <ol>
. I need to put <ol class="list-group">
. Is it possible to change this default behavior?!
- Is it possible to take JSON with current information about node after drag and drop? Lets say information like:
position
,level
,parent_id
of nodes? Can you show me example if it possible, please? :)