Skip to content

## v2.1.0

Choose a tag to compare

@thienhung1989 thienhung1989 released this 14 May 19:02
· 58 commits to master since this release

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 $iconClass replace for __tree_icon__ (avoid conflict when create tree-table use one tree-data)
  • Add function:
    • re-Add function dropped in $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.
    • 'onSelect': Select and callback function on-select (created in directive)

    • 'onClick': callback function on-click. (created in directive)

    • 'column-defs': null will auto get colDefinitions (sample with empty).

    • '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 (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>