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;