Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
oj-sample-organization-tree reorder — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

oj-sample-organization-tree reorder

Accepted answer
8
Views
1
Comments
edited Mar 7, 2021 1:16PM in Visual Builder 1 comment

Summary

drag and drop tree node

Content

How to reorder oj-sample-organization-tree using drag and drop?

this feature is available in the standard oj-tree component ?

is it possible to do the same functionality with this component ? 

 

Code Snippet

<oj-sample-organization-tree
    data="[[ $variables.adp ]]" id="tree" draggable="true" selection-mode="single">
        <template slot="itemTemplate">
          <oj-sample-organization-tree-item node-id="[[ $current.data.nodeId ]]"
        parent-id="[[ $current.data.parentId ]]"
        label="[[ $current.data.label ]]"
        secondary-label="[[ $current.data.secondaryLabel ]]" 
        draggable="true"
        >
        </oj-sample-organization-tree-item>
        </template>
      </oj-sample-organization-tree>
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!