Releases: thienhung1989/angular-tree-dnd
Releases · thienhung1989/angular-tree-dnd
v3.0.11: Merge pull request #71 from thienhung1989/develop
v3.0.11
- Fixed:
- Upgrade version: v3.0.11.
- Remove lib no use for dev.
v3.0.10: Merge pull request #70 from thienhung1989/develop
v3.0.10
- Fixed:
- Missing attributes: indent & indent_plus.
- Upgrade gulp4.
- Add package-lock.json & yarn.lock.
- Add jsdoc3.
- Fix bug & update demo
v3.0.9
- Fixed:
- The tree control isn't working.
- Reconstruct demo.
- Optimal code.
- Fix drag & drop
v3.0.8
- Fixed:
- Expand & collection node.
- Added:
- Allow drag & drop when
$compileProvider.debugInfoEnabled(false);
.
- Allow drag & drop when
- Optimal code.
- Reformat code.
fix_bugs
+ Fix node
when call function expand_node
.
Update new contruct
- Fix any errors.
- Testing with angular 1.6.
Optimal & Faster
v3.0.4
- Removed:
$watch
in node, nodes- $icon_class -> node.icon_class
- Fixed:
- Indent when error dragging in list.
- Optimal
$watch
of tree-dnd (faster, stabler).
- Added:
- Just only
plugin
when need (increment speed init tree):- Filter.
- Order By.
- Drag & Drop.
- Control of Tree.
- In Demo:
- Custom Options & Demo live.
- Order By.
- Just only
## v3.0.3
v3.0.3
- Fix error dragDrop for Tree
- Optimal getElementChilds
- Add new Demo (filter, multi tree)
- Problems:
- Error when drag node to thead (table)
- Next feature:
- Split angular-tree-dnd:
- Only Directive control: next, prev,...
- Only DragNDrop
- ....
- And Full-All
- OrderBy
- Split angular-tree-dnd:
## v3.0.2
v3.0.2
- Add function
Scope.$safeApply()
. - Fix Watch
- Fix Bower.json
- Fix any error angular 1.2.1.
- New feature:
- Filter.
- Add
scope.targeting
(boolean):true
- whendragMove
targeting (tree-dnd over). - Add attribute
enableCollapse
to enable Modecollapse node
whendragStart
.
- Next feature:
- Multi select.
- OrderBy data.
## v3.0.1
v3.0.1
- Add
gulp
,travis
,... dragBorder
: allowdrag
indent ifposition
ofdrag
>=border
drag.for_all_descendants
: To access all descendant of node.- param: for_all_descendants(node, fnCallback);
- return: false (when
fnCallback
returnfalse
ornull
), true (if accessed all descendant) - fnCallback: to proccess when dir to node.
- result: if return true or Object then
break
functionfor_all_descendants
(when functionfor_all_descendants
returnfalse
)
- result: if return true or Object then
for_all_ancestors
: sample likefor_all_descendants
(but use toancestors
);- Attribute
tree-class
iftype
:string
: will cast value toscope.tree_class
object
: will cast vaule to$TreeDnDClass
- '$TreeDnDClass': constant of
class
in Tree, ableextend
by attributetree-class
- tree: 'tree-dnd', (auto
addClass
tree-dnd) - empty: 'tree-dnd-empty',
- hidden: 'tree-dnd-hidden',
- node: 'tree-dnd-node', (auto
addClass
tree-dnd-node) - nodes: 'tree-dnd-nodes', (auto
addClass
tree-dnd-nodes) - handle: 'tree-dnd-handle',
- place: 'tree-dnd-placeholder',
- drag: 'tree-dnd-drag',
- status: 'tree-dnd-status',
- icon:
- '1': 'glyphicon glyphicon-minus', (able cast by attribute
icon-leaf
) - '0': 'glyphicon glyphicon-plus', (able cast by attribute
icon-leaf
) - '-1': 'glyphicon glyphicon-file', (able cast by attribute
icon-leaf
)
- '1': 'glyphicon glyphicon-minus', (able cast by attribute
- tree: 'tree-dnd', (auto
- '$TreeDnDClass': constant of
- Attribute
tree-control
- Allowdeveloper
create new or overdrive all function exist below :- Directive:
- collapse_all: ()
- collapse_node: (node)
- expand_all: ()
- expand_all_parents: (child)
- expand_node: (node)
- select_first_node: ()
- select_next_node: (node)
- select_next_sibling: (node)
- select_node: (node)
- deselect_node: ()
- select_parent_node: (node)
- select_prev_node: (node)
- select_prev_sibling: (node)
- Event:
- for_all_ancestors: (child, fn)
- for_all_descendants: (node, fn)
- get_children: (node)
- get_closest_ancestor_next_sibling: (node)
- get_first_child: (node)
- get_first_node: ()
- get_last_descendant: (node)
- get_next_node: (node)
- get_next_sibling: (node)
- get_parent: (node)
- get_prev_node: (node)
- get_prev_sibling: (node)
- get_selected_node: ()
- get_siblings: (node)
- Effect:
- reload_data: ()
- add_node: (parent, new_node, index)
- add_node_root: (new_node)
- remove_node: (node)
- selected_node: null
- Directive: