Comments (2)
I would like to put the properties
rows (?Array) - only list of the rows which should be displayed
className (string|Array) - additional CSS classes that should be added to a row
from ng2-table.
Here is how I added table row color. I added an [ngClass]="{ 'selected': config.method(row) }" to the tr tag of the table body in ng2-table source files. I then added a method to my config object in my component where I used the ng-table component. This method tested the column that contained the value I wanted to test and returned true when the specific value was there.
And bing, bang, boom, the table had colored rows when the correct value was in the column.
from ng2-table.
Related Issues (20)
- i18n doesn't work in filter inputs placeholders
- TypeError: require is not a function
- How use the i18n in this component? HOT 1
- Implement ng2-table into Angular 2 Application
- All column search working on case sensitive. How to change that HOT 2
- Understanding of project setup HOT 1
- Installing ng2-table on Angular 6 HOT 2
- Is the project still maintained ?
- how forma data dd/MM/yyyy ?
- Please help me to add html button on data
- MDialog hide behind table triggered by onCellClick
- angular2 datatables are not working for dynamic data but working fine for static data HOT 1
- How i can change language?
- filtering or sorting changes column widths
- Buttons in cell
- Production Build Error
- How can i add custom templates on rows.
- Not compiling in anglar 9 Ivy renderer HOT 6
- Unable to select text in single cell
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng2-table.