Comments (6)
#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.
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.
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.
Makes sense. I will push a fix soon.
from gridjs.
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.
thank you @UNIcodeX!
from gridjs.
Related Issues (20)
- Svelte example with select single row
- Fix events documentation
- Selection plugin not working after update HOT 7
- Table broken by hidden columns in a nested header
- Separate display and sort values
- Support for True Grid Layout to Enhance Data Presentation
- Does gridjs support inline edit?
- word wrapping?
- When using pagination, is there any way to know what the current index is? HOT 2
- Add examples how to hide column(s) via Events
- GridJS package on unpkg is down, cant load files or css
- Incorrect nested header - colspan vaue not correct
- Columns with nested headers do not have a minimum width
- Reload grid after update data
- Is there a way to prevent the pagination controls from jumping left-to-right when clicking on "Next"?
- ForceRender does not return "No records found" if data is empty
- I hope it can include custom search and pagination plugin features.
- Search box reset icon not clearing the search term (server side search)
- Add `PluginPosition.None` to quickly hide a plugin
- Feature Request: Server-Side Pagination with POST and Additional Filtering Fields
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 gridjs.