Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

feature-expand-a-branch-element - #5

Open
joan16v wants to merge 1 commit into
tameraydin:masterfrom
joan16v:joan16v-feature-expand-a-branch-element
Open

feature-expand-a-branch-element#5
joan16v wants to merge 1 commit into
tameraydin:masterfrom
joan16v:joan16v-feature-expand-a-branch-element

Conversation

@joan16v

@joan16v joan16v commented Nov 29, 2016

Copy link
Copy Markdown

Added the feature to expand only the element you select.

Example of use. Having this list:

<ul id="myList">
    <li>This is first item
        <ul>
            <li id="subItem1">sub item 1</li>
            <li id="subItem2">sub item 2</li>
        </ul>
    </li>
    <li>This is second item
        <ul>
            <li id="subItem3">sub item 3</li>
            <li id="subItem4">sub item 4</li>
        </ul>
    </li>
</ul>

You can only expand the second branch with this:

$('#myList').data('sapling').expandElement('#subItem4');

Added the feature to expand only the element you select. Example of use:

$('#myList').data('sapling').expandElement('#element12');
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant