Skip to content

Commit 1f09030

Browse files
committed
docs(grid): enhace doc example #8195
1 parent a47c1e2 commit 1f09030

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

projects/igniteui-angular/src/lib/grids/columns/column.component.ts

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,29 +1185,24 @@ export class IgxColumnComponent implements AfterContentInit {
11851185

11861186
private _pipeArgs: IColumnPipeArgs = { format: DEFAULT_DATE_FORMAT, digitsInfo: DEFAULT_DIGITS_INFO };
11871187
/**
1188-
* @remarks
11891188
* Provide parameters for DatePipe and DecimalPipe to customize the display format for date and numeric columns.
11901189
* Accepts an `IColumnPipeArgs` object with any of the `format`, `timezone` and `digitsInfo` properties.
11911190
* For more details see https://angular.io/api/common/DatePipe and https://angular.io/api/common/DecimalPipe
1192-
* @param IColumnPipeArgs object.
1193-
*
1194-
* @memberof IgxColumnComponent
1195-
*/
1196-
@Input()
1197-
/**
1198-
* Sets the _pipeArgs.
11991191
* @example
12001192
* ```typescript
1201-
* const formatOptions: IColumnPipeArgs = {
1193+
* const pipeArgs: IColumnPipeArgs = {
12021194
* format: 'longDate',
1203-
* timezone: 'UTC'
1195+
* timezone: 'UTC',
1196+
* digitsInfo: '1.1-2'
12041197
* }
12051198
* ```
12061199
* ```html
1207-
* <igx-column dataType="date" pipeArgs="formatOptions"></igx-column>
1208-
* <igx-column dataType="number" pipeArgs="{ digitsInfo: '1.1-2' }"></igx-column>
1200+
* <igx-column dataType="date" [pipeArgs]="pipeArgs"></igx-column>
1201+
* <igx-column dataType="number" [pipeArgs]="pipeArgs"></igx-column>
12091202
* ```
1203+
* @memberof IgxColumnComponent
12101204
*/
1205+
@Input()
12111206
set pipeArgs(value: IColumnPipeArgs) {
12121207
this._pipeArgs = Object.assign(this._pipeArgs, value);
12131208
this.grid.summaryService.clearSummaryCache();

0 commit comments

Comments
 (0)