dmtrs / ejnestedtreeactions Goto Github PK
View Code? Open in Web Editor NEWyii extension for nested set with jstree
Home Page: http://www.yiiframework.com/extension/ejnestedtreeactions/
yii extension for nested set with jstree
Home Page: http://www.yiiframework.com/extension/ejnestedtreeactions/
jsTree 1.0 API changed a lot. Will be good to update to 1.0.
Copying between multiple trees don't work either. I think that this is caused because i don't pass the neccessary parameter from the callback so i can make the action understand from which tree the node comes. This is easy enough to do but have to decide if there is gone be a move to the jstree 1.0 and then fix this.
At creating node if $nodenaming == false i get alert on callback.
problem is that, a rootnode has no parent..
i fixed it with this:
http://gist.github.com/449937
When trying to move a node from one try to other i got this exception: Moving between trees not supported yet. v.0.85 :(
Can be fixed in Ebehavior::formatNode():
public function formatNode($model) {
if($model===null)
return array();
โฆ
in my opinion it would be better to have a general set of default-attributes instead of just the defaultName..
my approach is the following:
in the array at the controller i put my defaultattributes, and then the action itself will get them..
Tested with IE8. Gives alert with "could not create node".
Fatal error: Call to a member function children() on a non-object in W:\home\sportopinions\app\extensions\EJNestedTreeActions\actions\Renamenode.php on line 43
because root has no parent
When delete jstree example callback does not the proper values.
There should be a way to determine if a node can be deleted.
For example the i have a ns tbl_locations and locationid
exist in an other table tbl_addresses. I don't have foreign key relationships for example.
If i delete a node then the locationid attribute wil be deleted and the addressid will be left untouched. Maybe not having relationships is a bad desgin should we consider such situations?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.