Skip to content

Commit ce75f9e

Browse files
MKirovaMayaKirova
authored andcommitted
chore(*): Additional minor changes.
1 parent 9f250d7 commit ce75f9e

File tree

2 files changed

+26
-15
lines changed

2 files changed

+26
-15
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
575575
* ```html
576576
* <igx-grid #grid [showToolbar]="true" [rowEditable]="true" [primaryKey]="'ProductID'" [columnHiding]="true"></igx-grid>
577577
* ```
578-
* @memberof IgxGridBaseDirective
579578
*/
580579
@WatchChanges()
581580
@Input()
@@ -643,6 +642,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
643642

644643
/**
645644
* Gets the width of the header.
645+
* @example
646646
* ```html
647647
* let gridHeaderWidth = this.grid.headerWidth;
648648
* ```
@@ -1049,7 +1049,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
10491049
* <igx-grid #grid3 (onCellEditCancel)="editCancel($event)" [data]="data" [primaryKey]="'ProductID'">
10501050
* </igx-grid>
10511051
* ```
1052-
* @memberof IgxGridComponent
10531052
*/
10541053
@Output()
10551054
public onCellEditCancel = new EventEmitter<IGridEditEventArgs>();
@@ -1063,7 +1062,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
10631062
* <igx-grid #grid3 (onCellEditEnter)="editStart($event)" [data]="data" [primaryKey]="'ProductID'">
10641063
* </igx-grid>
10651064
* ```
1066-
* @memberof IgxGridComponent
10671065
*/
10681066
@Output()
10691067
public onCellEditEnter = new EventEmitter<IGridEditEventArgs>();
@@ -1092,7 +1090,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
10921090
* <igx-grid #grid3 (onRowEditEnter)="editStart($event)" [primaryKey]="'ProductID'" [rowEditable]="true">
10931091
* </igx-grid>
10941092
* ```
1095-
* @memberof IgxGridComponent
10961093
*/
10971094
@Output()
10981095
public onRowEditEnter = new EventEmitter<IGridEditEventArgs>();
@@ -2955,7 +2952,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
29552952
* <igx-grid #grid [data]="data" [(expansionStates)]="model.expansionStates">
29562953
* </igx-grid>
29572954
* ```
2958-
* @memberof IgxGridComponent
29592955
*/
29602956
@Input()
29612957
public get expansionStates() {
@@ -2976,7 +2972,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
29762972
* ```typescript
29772973
* this.grid.expandAll();
29782974
* ```
2979-
* @memberof IgxGridBaseDirective
29802975
*/
29812976
public expandAll() {
29822977
this._defaultExpandState = true;
@@ -2989,7 +2984,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
29892984
* ```typescript
29902985
* this.grid.collapseAll();
29912986
* ```
2992-
* @memberof IgxGridBaseDirective
29932987
*/
29942988
public collapseAll() {
29952989
this._defaultExpandState = false;
@@ -3004,6 +2998,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
30042998
* ```typescript
30052999
* this.grid.expandRow(rowID);
30063000
* ```
3001+
* @param rowID The row id - primaryKey value or the data record instance.
30073002
*/
30083003
public expandRow(rowID: any) {
30093004
this.gridAPI.set_row_expansion_state(rowID, true);
@@ -3017,7 +3012,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
30173012
* ```typescript
30183013
* this.grid.collapseRow(rowID);
30193014
* ```
3020-
* @memberof IgxGridBaseDirective
3015+
* @param rowID The row id - primaryKey value or the data record instance.
30213016
*/
30223017
public collapseRow(rowID: any) {
30233018
this.gridAPI.set_row_expansion_state(rowID, false);
@@ -3032,14 +3027,18 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
30323027
* ```typescript
30333028
* this.grid.toggleRow(rowID);
30343029
* ```
3035-
* @memberof IgxGridBaseDirective
3030+
* @param rowID The row id - primaryKey value or the data record instance.
30363031
*/
30373032
public toggleRow(rowID: any) {
30383033
const rec = this.gridAPI.get_rec_by_id(rowID);
30393034
const state = this.gridAPI.get_row_expansion_state(rec);
30403035
this.gridAPI.set_row_expansion_state(rowID, !state);
30413036
}
30423037

3038+
/**
3039+
* @hidden
3040+
* @internal
3041+
*/
30433042
public getDefaultExpandState(rec: any) {
30443043
return this._defaultExpandState;
30453044
}
@@ -3528,7 +3527,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
35283527
* ```typescript
35293528
* grid.moveColumn(compName, persDetails);
35303529
* ```
3531-
* @memberof IgxGridBaseDirective
35323530
*/
35333531
public moveColumn(column: IgxColumnComponent, dropTarget: IgxColumnComponent, pos: DropPosition = DropPosition.None) {
35343532

@@ -4837,7 +4835,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
48374835
* ```typescript
48384836
* const dataView = this.grid.dataView;
48394837
* ```
4840-
* @memberof IgxGridComponent
48414838
*/
48424839
get dataView(): any[] {
48434840
return this.verticalScrollContainer.igxForOf;
@@ -5186,7 +5183,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
51865183
* ```typescript
51875184
* const nextEditableCellPosition = this.grid.getNextCell(0, 3, (column) => column.editable);
51885185
* ```
5189-
* @memberof IgxGridBaseDirective
51905186
*/
51915187
public getNextCell(currRowIndex: number, curVisibleColIndex: number,
51925188
callback: (IgxColumnComponent) => boolean = null): ICellPosition {
@@ -5220,7 +5216,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
52205216
* ```typescript
52215217
* const previousEditableCellPosition = this.grid.getPreviousCell(0, 3, (column) => column.editable);
52225218
* ```
5223-
* @memberof IgxGridBaseDirective
52245219
*/
52255220
public getPreviousCell(currRowIndex: number, curVisibleColIndex: number,
52265221
callback: (IgxColumnComponent) => boolean = null): ICellPosition {

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
314314

315315
/**
316316
* Gets the hierarchical representation of the group by records.
317+
* @example
317318
* ```typescript
318319
* let groupRecords = this.grid.groupsRecords;
319320
* ```
@@ -631,6 +632,7 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
631632

632633
/**
633634
* Gets/Sets the template reference of the `IgxGridComponent`'s group area.
635+
* @example
634636
* ```typescript
635637
* const groupAreaTemplate = this.grid.groupAreaTemplate;
636638
* this.grid.groupAreaTemplate = myAreaTemplate.
@@ -647,8 +649,10 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
647649

648650
/**
649651
* Groups by a new `IgxColumnComponent` based on the provided expression, or modifies an existing one.
652+
* @remarks
650653
* Also allows for multiple columns to be grouped at once if an array of `ISortingExpression` is passed.
651654
* The onGroupingDone event would get raised only **once** if this method gets called multiple times with the same arguments.
655+
* @example
652656
* ```typescript
653657
* this.grid.groupBy({ fieldName: name, dir: SortingDirection.Asc, ignoreCase: false });
654658
* this.grid.groupBy([
@@ -672,14 +676,17 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
672676
}
673677

674678
/**
679+
* Clears grouping for particular column, array of columns or all columns.
680+
* @remarks
675681
* Clears all grouping in the grid, if no parameter is passed.
676682
* If a parameter is provided, clears grouping for a particular column or an array of columns.
683+
* @example
677684
* ```typescript
678685
* this.grid.clearGrouping(); //clears all grouping
679686
* this.grid.clearGrouping("ID"); //ungroups a single column
680687
* this.grid.clearGrouping(["ID", "Column1", "Column2"]); //ungroups multiple columns
681688
* ```
682-
*
689+
*@param name Name of column or array of column names to be ungrouped.
683690
*/
684691
public clearGrouping(name?: string | Array<string>): void {
685692
this._gridAPI.clear_groupby(name);
@@ -688,6 +695,8 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
688695

689696
/**
690697
* Returns if a group is expanded or not.
698+
* @param group The group record.
699+
* @example
691700
* ```typescript
692701
* public groupRow: IGroupByRecord;
693702
* const expandedGroup = this.grid.isExpandedGroup(this.groupRow);
@@ -700,6 +709,8 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
700709

701710
/**
702711
* Toggles the expansion state of a group.
712+
* @param groupRow The group record to toggle.
713+
* @example
703714
* ```typescript
704715
* public groupRow: IGroupByRecord;
705716
* const toggleExpGroup = this.grid.toggleGroup(this.groupRow);
@@ -712,6 +723,8 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
712723

713724
/**
714725
* Expands the specified group and all of its parent groups.
726+
* @param groupRow The group record to fully expand.
727+
* @example
715728
* ```typescript
716729
* public groupRow: IGroupByRecord;
717730
* this.grid.fullyExpandGroup(this.groupRow);
@@ -732,6 +745,7 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
732745

733746
/**
734747
* Toggles the expansion state of all group rows recursively.
748+
* @example
735749
* ```typescript
736750
* this.grid.toggleAllGroupRows;
737751
* ```
@@ -744,6 +758,7 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
744758

745759
/**
746760
* Returns if the `IgxGridComponent` has groupable columns.
761+
* @example
747762
* ```typescript
748763
* const groupableGrid = this.grid.hasGroupableColumns;
749764
* ```
@@ -762,7 +777,8 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
762777
}
763778

764779
/**
765-
* Returns if the grid's group by drop area is visible.
780+
* Gets if the grid's group by drop area is visible.
781+
* @example
766782
* ```typescript
767783
* const dropVisible = this.grid.dropAreaVisible;
768784
* ```

0 commit comments

Comments
 (0)