Skip to content

Commit

Permalink
fix(grid): Add missing interface for clipboardOptions. (#13683)
Browse files Browse the repository at this point in the history
  • Loading branch information
skrustev committed Nov 20, 2023
1 parent 0319480 commit 6987c1f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
22 changes: 22 additions & 0 deletions projects/igniteui-angular/src/lib/grids/common/grid.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1387,3 +1387,25 @@ export interface IPinningConfig {
columns?: ColumnPinningPosition;
rows?: RowPinningPosition;
}

/**
* An interface describing settings for clipboard options
*/
export interface IClipboardOptions {
/**
* Enables/disables the copy behavior
*/
enabled: boolean;
/**
* Include the columns headers in the clipboard output.
*/
copyHeaders: boolean;
/**
* Apply the columns formatters (if any) on the data in the clipboard output.
*/
copyFormatters: boolean;
/**
* The separator used for formatting the copy output. Defaults to `\t`.
*/
separator: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ import {
IGX_GRID_SERVICE_BASE,
ISizeInfo,
RowType,
IPinningConfig
IPinningConfig,
IClipboardOptions
} from './common/grid.interface';
import { DropPosition } from './moving/moving.service';
import { IgxHeadSelectorDirective, IgxRowSelectorDirective } from './selection/row-selectors';
Expand Down Expand Up @@ -322,7 +323,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
* Controls the copy behavior of the grid.
*/
@Input()
public clipboardOptions = {
public clipboardOptions: IClipboardOptions = {
/**
* Enables/disables the copy behavior
*/
Expand Down

0 comments on commit 6987c1f

Please sign in to comment.