ng2-smart-table icon indicating copy to clipboard operation
ng2-smart-table copied to clipboard

how to insert an nb-icon into a custom cell?

Open EvgenyProkopovich opened this issue 5 years ago • 7 comments

"dependencies": { "@angular/animations": "^8.0.2", "@angular/cdk": "^8.0.1", "@angular/common": "~8.0.1", "@angular/compiler": "~8.0.1", "@angular/core": "~8.0.1", "@angular/forms": "~8.0.1", "@angular/platform-browser": "~8.0.1", "@angular/platform-browser-dynamic": "~8.0.1", "@angular/router": "~8.0.1", "@nebular/bootstrap": "^4.1.0", "@nebular/eva-icons": "^4.0.0-rc.8", "@nebular/theme": "^4.1.0", "@ng-bootstrap/ng-bootstrap": "^4.2.1", "bootstrap": "^4.3.1", "eva-icons": "^1.1.1", "ng2-completer": "^3.0.2", "ng2-smart-table": "^1.5.0", "normalize.css": "^8.0.1", "pace-js": "^1.0.2", "rxjs": "~6.4.0", "tslib": "^1.9.0", "zone.js": "~0.9.1" }, image image

EvgenyProkopovich avatar Jun 25 '19 07:06 EvgenyProkopovich

I have the same issue. I recently migrated from Nebular 3 to Nebular 4. With Nebular 3, I used some icons on the action buttons, for example

    edit: {
      editButtonContent: '<i class="nb-edit" title="edit"></i>',
    },

But now I can't use . I tried to use:

    edit: {
      editButtonContent: '<nb-icon icon="edit-outline" title="edit"></nb-icon>',
    },

but I have a warning in js console WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss and the icon doesn't appear.

sancaruso avatar Jul 30 '19 09:07 sancaruso

I have the same issue, need a fix

magnusfernandes avatar Nov 14 '19 18:11 magnusfernandes

I have the same issue. I recently migrated from Nebular 3 to Nebular 4. With Nebular 3, I used some icons on the action buttons, for example

    edit: {
      editButtonContent: '<i class="nb-edit" title="edit"></i>',
    },

But now I can't use . I tried to use:

    edit: {
      editButtonContent: '<nb-icon icon="edit-outline" title="edit"></nb-icon>',
    },

but I have a warning in js console WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss and the icon doesn't appear.

they know how to fix: sanitizing HTML stripped some content

temp2010 avatar Jan 22 '20 19:01 temp2010

Did someone find a solution?

fdiogoc avatar Mar 24 '20 21:03 fdiogoc

Hi @fdiogoc,

I contacted the support and they told me that fixing this issue isn't a priority for now. They didn't came with any other answer.

Guess we have to use another DataTable component.

vmarceddu avatar Mar 25 '20 08:03 vmarceddu

temporarily use the old nebular-icons https://github.com/akveo/nebular-icons/tree/master/src/icons

lalosh avatar Apr 23 '20 08:04 lalosh

I am also facing this issue, has anyone in the meantime find a solution?

Ynnck123 avatar Nov 08 '21 08:11 Ynnck123