GithubHelp home page GithubHelp logo

Comments (6)

afshinm avatar afshinm commented on May 26, 2024 1

#49 should fix this one, too. I have added a new function, html, which enables us to embed HTML elements in cells. will update the docs as well.

from gridjs.

afshinm avatar afshinm commented on May 26, 2024 1

Makes sense. I have created this Codesandbox: https://codesandbox.io/s/gridjs-hello-world-html-ecepd?file=/src/index.js:0-301

const { Grid, html } = gridjs;

new Grid({
  columns: ["Name", "Email", "Phone Number"],
  search: true,
  data: [
    ["John", "[email protected]", html("<b>(353) 01 222 3333</b>")],
    ["John", "[email protected]", html("<i>(353) 01 222 3323</i>")]
  ]
}).render(document.getElementById("wrapper"));

but I will add that to the docs as well.

from gridjs.

UNIcodeX avatar UNIcodeX commented on May 26, 2024 1

Nice! I must say congratulations on a really awesome library. In my opinion it is much more ergonomic than dataTables. Also, Thank you for how responsive you've been.

from gridjs.

afshinm avatar afshinm commented on May 26, 2024

Makes sense. I will push a fix soon.

from gridjs.

UNIcodeX avatar UNIcodeX commented on May 26, 2024

Nice! Thank you.

I see updated documentation on how one would do this when used in a module, but nothing on how would one do this in line between <script>. This may seem self evident, but newcomers may not make the connection that simply calling html() as in the example will not work in this case, and that it must be fully qualified as gridjs.html().

Thanks again.

from gridjs.

afshinm avatar afshinm commented on May 26, 2024

thank you @UNIcodeX!

from gridjs.

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.