How to use the cheetah-grid.themes function in cheetah-grid

To help you get started, we’ve selected a few cheetah-grid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github future-architect / cheetah-grid / packages / demo / src / main.js View on Github external
import cheetahGrid from 'cheetah-grid'
import Vue from 'vue'
import VueRouter from 'vue-router'
import router from './router'
import CGrid from 'vue-cheetah-grid'
import App from './App.vue'

Vue.use(VueRouter)
Vue.use(CGrid)

Vue.filter('numberDelimiter', (value) => value.toLocaleString())

// todo use fmt
Vue.filter('dateFormat', (d, fmt) => d ? `${d.getFullYear()}/${d.getMonth() + 1}/${d.getDate()}` : '')

cheetahGrid.themes.default = cheetahGrid.themes.default.extends({
  // font: '16px Roboto, sans-serif'
})
// router hook
router.beforeEach((to, from, next) => {
  document.title = `${to.meta.title} | Cheetah Grid Demo`
  next()
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: ''
})

cheetah-grid

Cheetah Grid is a high performance grid engine that works on canvas

MIT
Latest version published 13 days ago

Package Health Score

79 / 100
Full package analysis