Replies: 1 comment
-
I have the following approach working. My setup is Vue 3.2.19 and gridjs 5.0.2.
{
"dependencies": {
"gridjs": "^5.0.2",
"vue": "^3.2.19"
}
}
<template>
<div id="table-wrapper"></div>
</template>
<script>
import { Grid } from "gridjs";
import "gridjs/dist/theme/mermaid.css";
export default {
mounted() {
this.$nextTick(function () {
new Grid({
columns: ["Name", "Email", "Phone Number"],
data: [
["John", "[email protected]", "(353) 01 222 3333"],
["Mark", "[email protected]", "(01) 22 888 4444"],
["Eoin", "[email protected]", "0097 22 654 00033"],
["Sarah", "[email protected]", "+322 876 1233"],
["Afshin", "[email protected]", "(353) 22 87 8356"]
]
}).render(document.getElementById("table-wrapper"));
})
}
}
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
how to render gridjs from html in vue
Beta Was this translation helpful? Give feedback.
All reactions