Skip to content

Clipboard copy is not applying formatters #17132

@ricardosaracino

Description

@ricardosaracino

Description

IClipboardOptions.copyFormatters does not work (tried with cellSelection multiple and single)

Chrome

"dependencies": {
    "@angular/animations": "^21.1.5",
    "@angular/cdk": "^21.1.5",
    "@angular/common": "^21.1.5",
    "@angular/compiler": "^21.1.5",
    "@angular/core": "^21.1.5",
    "@angular/forms": "^21.1.5",
    "@angular/material": "^21.1.5",
    "@angular/platform-browser": "^21.1.5",
    "@angular/platform-browser-dynamic": "^21.1.5",
    "@angular/router": "^21.1.5",
    "@fontsource/titillium-web": "^5.2.8",
    "@fortawesome/fontawesome-free": "^7.2.0",
    "@infragistics/igniteui-angular": "21.1.0",
    "@ngrx/effects": "^21.0.1",
    "@ngrx/router-store": "^21.0.1",
    "@ngrx/store": "^21.0.1",
    "@ngx-translate/core": "^17.0.0",
    "@ngx-translate/http-loader": "^17.0.0",
    "@sentry/angular": "^10.40.0",
    "accounting": "^0.4.1",
    "bootstrap": "^5.3.8",
    "date-fns": "^4.1.0",
    "decimal.js": "^10.6.0",
    "igniteui-angular-charts": "^21.0.0",
    "igniteui-angular-core": "^21.0.0",
    "igniteui-theming": "^25.0.1",
    "json-to-csv-export": "^3.1.3",
    "jwt-decode": "^4.0.0",
    "material-icons": "^1.13.14",
    "ngx-csv-parser": "^2.0.0",
    "ngx-permissions": "^19.0.0",
    "object-string-replacer": "^1.1.0",
    "rxjs": "~7.8.2",
    "uuid4": "^2.0.3",
    "valid-filename": "^4.0.0",
    "zone.js": "~0.16.1"
  },

Steps to reproduce

export const clipboardOptions: IClipboardOptions = {
  enabled: true,
  copyHeaders: false,
  copyFormatters: true,
  separator: '\t',
};
Image

Result

Unformated data is pasted

2022,1,1	2022,3,31
2022,4,1	2022,6,30
2022,7,1	2022,9,30

Expected result

i expect the data pasted to look like the data copied

Attachments

Attach a sample if available, and screenshots, if applicable.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions