Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
gridjs-vue
Advanced tools
A Vue.js wrapper component for Grid.js
yarn install gridjs-vue || npm install gridjs-vue
/* in `main.js` or wherever you specify your global components */
import Grid from 'gridjs-vue'
Vue.use(Grid)
<script>
import Grid from 'gridjs-vue'
export default {
components: {
Grid
}
}
</script>
Pass either data
, from
, or server
as a data source. Everything else is optional.
Refer to Grid.js documentation for specific configuration options.
<template>
<grid
:auto-width="autoWidth"
:data="data"
:from="from"
:language="language"
:pagination="pagination"
:search="search"
:server="server"
:sort="sort"
:width="width"
></grid>
</template>
<script>
import Grid from 'vue-gridjs'
export default {
name: 'MyTable',
components: {
Grid
},
data() {
return {
autoWidth: true / false, // boolean to automatically set table width
data: {
// object containing arrays columns & rows
cols: ['column 1', 'column 2'],
rows: ['row 1: col 1', 'row 1: col 2']
},
from: '.my-element', // string of HTML table selector
language: {}, // localization dictionary object
pagination: true / false || {}, // boolean or pagination settings object
search: true / false || {}, // boolean or search settings object
server: {}, // server settings object
sort: true / false || {}, // boolean or sort settings object
theme: 'mermaid', // string with name of theme
width: '100%' // string with css width value
}
}
}
</script>
{
"autoWidth": true,
"data": {
"cols": [""],
"rows": [""]
},
"from": undefined,
"language": undefined,
"pagination": false,
"search": false,
"server": undefined,
"sort": false,
"theme": "mermaid",
"width": "100%"
}
mermaid.css
stylesheet, is the only available theme for Grid.js.Originally authored by Daniel Sieradski.
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
FAQs
A Vue.js wrapper component for Grid.js
The npm package gridjs-vue receives a total of 471 weekly downloads. As such, gridjs-vue popularity was classified as not popular.
We found that gridjs-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.