Skip to content

Commit 6987c1f

Browse files
authored
fix(grid): Add missing interface for clipboardOptions. (#13683)
1 parent 0319480 commit 6987c1f

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

projects/igniteui-angular/src/lib/grids/common/grid.interface.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,3 +1387,25 @@ export interface IPinningConfig {
13871387
columns?: ColumnPinningPosition;
13881388
rows?: RowPinningPosition;
13891389
}
1390+
1391+
/**
1392+
* An interface describing settings for clipboard options
1393+
*/
1394+
export interface IClipboardOptions {
1395+
/**
1396+
* Enables/disables the copy behavior
1397+
*/
1398+
enabled: boolean;
1399+
/**
1400+
* Include the columns headers in the clipboard output.
1401+
*/
1402+
copyHeaders: boolean;
1403+
/**
1404+
* Apply the columns formatters (if any) on the data in the clipboard output.
1405+
*/
1406+
copyFormatters: boolean;
1407+
/**
1408+
* The separator used for formatting the copy output. Defaults to `\t`.
1409+
*/
1410+
separator: string;
1411+
}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ import {
140140
IGX_GRID_SERVICE_BASE,
141141
ISizeInfo,
142142
RowType,
143-
IPinningConfig
143+
IPinningConfig,
144+
IClipboardOptions
144145
} from './common/grid.interface';
145146
import { DropPosition } from './moving/moving.service';
146147
import { IgxHeadSelectorDirective, IgxRowSelectorDirective } from './selection/row-selectors';
@@ -322,7 +323,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
322323
* Controls the copy behavior of the grid.
323324
*/
324325
@Input()
325-
public clipboardOptions = {
326+
public clipboardOptions: IClipboardOptions = {
326327
/**
327328
* Enables/disables the copy behavior
328329
*/

0 commit comments

Comments
 (0)