Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable tree #57

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading