How to add class or ng-class attributes to mdt-cell or mdt-column
See original GitHub issueHi there,
I would like to know how to add class or ng-class attributes to mdt-cell or mdt-column. I have tried the below but the resulting <td> does not get the class. Is it intentional? I need this feature.
<mdt-cell ng-show="currLinkObj.hasEdit && currView == 'edit'" class="icon-edit" html-content="true"> <a ng-href="{{ hrefEdit | raw }}"> <div class="text-center"> <md-icon class="md-primary" md-svg-src="img/icons/actBtns/links/edit.svg"></md-icon> </div> </a> </mdt-cell>
Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Angular NgClass Example – How to Add Conditional CSS ...
Let's take the placeholder attribute of input as an example. Consider the following code: <!-- Normal HTML --> <input placeholder ...
Read more >How to add conditional class in Angular using ngClass
We can add a single class or multiple classes dynamically based upon the conditions. We will go through few examples to understand it...
Read more >mdDataTable/README.md at master - GitHub
Angular data table complete implementation of google material design based on Angular Material components. - mdDataTable/README.md at master ...
Read more >md-data-table - UNPKG
1. `bower install md-data-table` or `npm install md-data-table` or [download the source](https://github.com/iamisti/mdDataTable/archive/master.zip).
Read more >Adding multiple class using ng-class - Stack Overflow
To apply different classes when different expressions evaluate to true : <div ng-class="{class1 : expression1, class2 : expression2}"> Hello ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

having same issue. @iamisti sir any updates on adding custom class?
That’s a trick. Thanks!
But yes, please have the possibility to add classes to
mdt-cell and mdt-column.