jQWidgets Forums
jQuery UI Widgets › Forums › General Discussions › Navigation › Tree › How to get Drop item , dropPosition etc.. from jqxtree defined by angular?
Tagged: angularjs tree, angularjs treeview, jqxtree
This topic contains 7 replies, has 2 voices, and was last updated by azad 10 years, 7 months ago.
-
Author
-
December 24, 2014 at 9:02 am How to get Drop item , dropPosition etc.. from jqxtree defined by angular? #64629
I am handling the dragStart and dragEnd events in angular way. The following code works fine.
How can I get the item, dropItem, dropPosition inside the dragEnd event?var demoApp = angular.module("demoApp", ["jqwidgets"]); demoApp.controller("demoController", function ($scope) { $scope.settings = { allowDrag: true, allowDrop: true, height: '800px', width: '300px', theme: 'energyblue', dragStart: function(event){ alert("drag start"); }, dragEnd: function (event){ alert("drag start"); //i need dropTarget here. } } });
this is my tree
<div ng-controller="demoController" id="pagemanager"> <jqx-tree jqx-settings="settings" > <ul> <li item-expanded='true' >Section 1 <ul> <li>Page 1.1</li> <li>Page 1.2</li> <li>Page 1.3</li> <li>Page 1.4</li> </ul> </li> <li item-expanded='true'>Section 2 <ul> <li>Page 2.1</li> <li>Page 2.2</li> <li>Page 2.3</li> <li>Page 2.4</li> </ul> </li> </ul> </jqx-tree> </div>
December 24, 2014 at 9:27 am How to get Drop item , dropPosition etc.. from jqxtree defined by angular? #64638Hi azad,
Available settings of these callbacks are documented on this page: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxtree/jquery-tree-api.htm
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/December 24, 2014 at 9:44 am How to get Drop item , dropPosition etc.. from jqxtree defined by angular? #64646sir,
can you please describe those settings here with my jqxtree?December 24, 2014 at 9:59 am How to get Drop item , dropPosition etc.. from jqxtree defined by angular? #64648Hi azad,
You can read about the callbacks which you want to use on the page I pointed you.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/December 24, 2014 at 10:08 am How to get Drop item , dropPosition etc.. from jqxtree defined by angular? #64649my problem is how to use callbacks in angular?
December 24, 2014 at 10:30 am How to get Drop item , dropPosition etc.. from jqxtree defined by angular? #64651epecially detect source node and tartget node of the treeview within angular.
please see the comments in following codevar demoApp = angular.module(“demoApp”, [“jqwidgets”]);
demoApp.controller(“demoController”, function ($scope) {$scope.settings = {
allowDrag: true,
allowDrop: true,
height: ‘800px’,
width: ‘300px’,
theme: ‘energyblue’,dragStart: function(event){
//@ here
//have get the source node of the tree which is ondraging.},
dragEnd: function (event){//@ here
//have get the source node of the tree which is ondraging.
//and target node of the tree. where the source node going to drop}
}
});December 24, 2014 at 12:00 pm How to get Drop item , dropPosition etc.. from jqxtree defined by angular? #64655Hi azad,
It does not matter whether you use AngularJS or not. The API page contains the parameters which you can use with these. The API page also shows what properties, methods and events supports this widget.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/December 27, 2014 at 4:28 am How to get Drop item , dropPosition etc.. from jqxtree defined by angular? #64723can you help me by filling above code?
thank you. -
AuthorPosts
You must be logged in to reply to this topic.