question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to add class or ng-class attributes to mdt-cell or mdt-column

See original GitHub issue

Hi 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:open
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
AdnanInayatcommented, Feb 13, 2017

having same issue. @iamisti sir any updates on adding custom class?

0reactions
faheemhameedcommented, Aug 4, 2016

That’s a trick. Thanks!

But yes, please have the possibility to add classes to mdt-cell and mdt-column.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found