Code Monkey home page Code Monkey logo

Comments (7)

iamisti avatar iamisti commented on July 26, 2024

Can u please explain a bit more? Just because data is already specified via html and I don't see what you want to do achieve. Thanks.

from mddatatable.

dbkaplun avatar dbkaplun commented on July 26, 2024

I just meant that it would be better if this code was replaced with something like:

<md-data-table-row>
  <md-data-table-cell>Frozen joghurt</md-data-table-cell>
  <md-data-table-cell>159</md-data-table-cell>
  <md-data-table-cell>6.0</md-data-table-cell>
  ...
</md-data-table-row>
<md-data-table-row>
  <md-data-table-cell>Ice cream sandwitch</md-data-table-cell>
  <md-data-table-cell>237</md-data-table-cell>
  <md-data-table-cell>9.0</md-data-table-cell>
  ...
</md-data-table-row>
...

That would be more powerful and easy to use.

from mddatatable.

iamisti avatar iamisti commented on July 26, 2024

It's sounds interesting.
Would you like to have fill the table with data only in this way, or you would like to preserve the one that we have now (providing an array)?

from mddatatable.

iamisti avatar iamisti commented on July 26, 2024

But I agree, let's do this :)

from mddatatable.

aoakeson avatar aoakeson commented on July 26, 2024

I am still not seeing this functional. Html content in the cells does not render. I noticed your comment where it says something to figure out something for including html content, but this issue is closed. What is the status of it?

from mddatatable.

iamisti avatar iamisti commented on July 26, 2024

You have to add an html-content="true" attribute for the column that has html content instead of a simple value.

from mddatatable.

aoakeson avatar aoakeson commented on July 26, 2024

Thank you for this. Just to clarify, if you want html content on the row, you must put it in the cell instead of the column.

Example:

<md-data-table-cell html-content="true">
<span ng-repeat="person in people">{{person.Name}}, </span>
</md-data-table-cell>

from mddatatable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.