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

Change the color of the selected row

Open HuangLuGuang opened this issue 5 years ago • 4 comments

When I select a row, how do I change the color of that row?

HuangLuGuang avatar Sep 24 '19 09:09 HuangLuGuang

ng2-smart-table table tr.selected { background-color: lightblue !important; }

hope4555 avatar Sep 25 '19 09:09 hope4555

ng2-smart-table table tr.selected { background-color: lightblue !important; }

this only works globally in styles.css but not in app.component.css

https://angular-jiacvb.stackblitz.io

Any hint?

chepo92 avatar Sep 23 '21 14:09 chepo92

you can use something like this inside your form.component.css

:host /deep/ ng2-smart-table tbody tr.selected {
    background: #299b9e !important;
}

javapach avatar Apr 02 '22 03:04 javapach

/deep/ is deprecated.

ziodave avatar May 15 '22 17:05 ziodave