Skip to content

Commit

Permalink
Enable tree (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerac4 authored Apr 2, 2024
1 parent 839629a commit 70a8a63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions ember-table/src/components/table/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
@rowComponent={{this.rowComponent}}
@checkboxSelectionMode={{this.checkboxSelectionMode}}
@staticHeight={{@staticHeight}}
@enableTree={{this.enableTree}}
as |Body|
>
<Body.row @onClick={{@onRowClick}} @onDoubleClick={{@onRowDoubleClick}} as |Row|>
Expand Down
8 changes: 8 additions & 0 deletions ember-table/src/components/table/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,13 @@ export interface TableArgs<
* @memberof TableArgs
*/
renderAll?: boolean;

/**
* Enable tree mode
*
* @memberof TableArgs
*/
enableTree?: boolean;
}

interface TableSignature<
Expand Down Expand Up @@ -462,6 +469,7 @@ export default class TableComponent<
@argDefault sorts: TableSort[] = [];
@argDefault key: string = '@identity';
@argDefault isMobile: boolean = false;
@argDefault enableTree: boolean = false;

//component state
@tracked columnPanPosition: number = this.args.columnPanPosition ?? 0;
Expand Down

0 comments on commit 70a8a63

Please sign in to comment.