## v2.1.0
v2.1.0
- Fix hashKey
- Able Drag data in tree-table different (supported)
- Removed:
__tree_icon__(in Tree_Data): changed to__icon__(-1: leaf, 0: collect, 1: expaned)
- Added
$iconClassreplace for__tree_icon__(avoid conflict when create tree-table use onetree-data) - Add function:
-
re-Add function
droppedin$callbaks(used to copying or remove node old):dropped: function (info, pass, isMove);
- With param:
- info:
- drag: Scope of Node dragging.
- tree: Scope of Node Target.
- node: Node dragging.
- parent: Parent containd Node Dragging.
- move:
- parent: Node parent to move node dragging to.
- pos: Position insert.
- target: Data node Target (able skip, not important)
- pass: bypass resutl in
$callback.beforeDrop:. - isMove: status Moving or Copying.
- info:
- With param:
-
'onSelect': Select and callback function
on-select(created indirective) -
'onClick': callback function
on-click. (created indirective) -
'column-defs':
nullwill auto get colDefinitions (sample withempty). -
'toggleExpand': use toggle Expand;
-
- Next Feature:
- Allow load Children dynamic with '$http'.
v2.0.1
- Fix remove indent when drag elemnt with level > 1;
- Fix drag not two tree-table different (development, not support).
- Add attributes
- enable-move:
true: To move node,false: to copy node (defaulttrue) - enable-hotkey:
true: press 'shift' to move node, unpress 'shift' to copy node. (defaultfalse) - enable-drag: to Enable-drag (default
true) - enable-status: to show status moving, copying (default
false) - template-copy: to add url template of
Status Copy(can bypass string or variable in controller, but just only get $templateCache, if not exist will get default); - template-move: to add url template of
Status Move(can bypass string or variable in controller, but just only get $templateCache, if not exist will get default); - Example:
- enable-move:
<tree-table class="tree-table table table-hover b-b b-light" tree-data="tree_data" tree-control="my_tree"
primary-key="primaryKey"
callbacks="callbacks"
enable-drag="true"
enable-status="true"
enable-move="true"
icon-leaf="none"
icon-expand="fa fa-fw fa-angle-right"
icon-collapse="fa fa-fw fa-angle-down"
column-defs="col_defs"
expand-on="expanding_property"
template-url="tree-table-template.html"
template-move="'tree-table-template.html'"
template-copy="tree-table-template.html"
data-indent="30"
data-indent-unit="px"
data-indent-plus="15"
></tree-table>