Skip to content

v2.0.1

Choose a tag to compare

@thienhung1989 thienhung1989 released this 08 May 16:01
· 64 commits to master since this release

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 (default true)
    • enable-hotkey: true: press 'shift' to move node, unpress 'shift' to copy node. (default false)
    • 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:
<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>