From 03f4369a70764b9e032657ad1285d298d291e57d Mon Sep 17 00:00:00 2001 From: Adam Baker Date: Tue, 2 Apr 2024 10:43:10 -0400 Subject: [PATCH] Enable tree --- ember-table/src/components/table/index.hbs | 1 + ember-table/src/components/table/index.ts | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/ember-table/src/components/table/index.hbs b/ember-table/src/components/table/index.hbs index e6d6240..75526e7 100644 --- a/ember-table/src/components/table/index.hbs +++ b/ember-table/src/components/table/index.hbs @@ -136,6 +136,7 @@ @rowComponent={{this.rowComponent}} @checkboxSelectionMode={{this.checkboxSelectionMode}} @staticHeight={{@staticHeight}} + @enableTree={{this.enableTree}} as |Body| > diff --git a/ember-table/src/components/table/index.ts b/ember-table/src/components/table/index.ts index 66d0a42..76e060a 100644 --- a/ember-table/src/components/table/index.ts +++ b/ember-table/src/components/table/index.ts @@ -373,6 +373,13 @@ export interface TableArgs< * @memberof TableArgs */ renderAll?: boolean; + + /** + * Enable tree mode + * + * @memberof TableArgs + */ + enableTree?: boolean; } interface TableSignature< @@ -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;