Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How change default rendering of plugin? How to take current information about node after drag and drop? #118

Open
nurzhannogerbek opened this issue Dec 27, 2017 · 0 comments

Comments

@nurzhannogerbek
Copy link

First of all thanks for this plugin! :)

I have some questions.

  1. 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?!

  1. 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? :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant