Skip to content

Commit 2be44a9

Browse files
authored
Merge pull request #7590 from IgniteUI/mdragnev/fix-7220-9.0.x
fix(igxHierarchicalGrid): Add ID setter for igxHGrid #7220
2 parents a19dc03 + f6d8be5 commit 2be44a9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti
6666
implements GridType, AfterViewInit, AfterContentInit, OnInit, OnDestroy, DoCheck {
6767

6868
/**
69-
* Sets the value of the `id` attribute. If not provided it will be automatically generated.
69+
* Gets/Sets the value of the `id` attribute.
70+
* @remarks
71+
* If not provided it will be automatically generated.
72+
* @example
7073
* ```html
7174
* <igx-hierarchical-grid [id]="'igx-hgrid-1'" [data]="Data" [autoGenerate]="true"></igx-hierarchical-grid>
7275
* ```
@@ -77,6 +80,9 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti
7780
public get id(): string {
7881
return this.h_id;
7982
}
83+
public set id(value: string) {
84+
this.h_id = value;
85+
}
8086

8187
/**
8288
* An @Input property that lets you fill the `IgxHierarchicalGridComponent` with an array of data.

0 commit comments

Comments
 (0)