v2.0.1
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>