Open e23fx opened 7 years ago
npm install --global vue-cli vue init webpack my-project cd my-project
in package.json add dependencies: "slickgrid-es6": "^2.1.0" and devDependencies:
"slickgrid-es6": "^2.1.0"
"less": "^2.5.3", "less-loader": "^2.2.1"
npm install
create assets/slick.less:
@import '~slickgrid-es6/dist/slick.grid.variables.less'; @import '~slickgrid-es6/dist/slick.grid.less'; @import '~slickgrid-es6/dist/slick-default-theme.less';
HelloWorld.vue:
<template> <div class="hello"> <div id="myGrid" class="slickgrid-container" style="width:600px;height:500px;"></div> </div> </template> <script> import { Grid } from 'slickgrid-es6' import '../assets/slick.less' export default { name: 'HelloWorld', data () { return { grid: {} } }, mounted: function () { this.$nextTick(function () { var columns = [ {id: 'title', name: 'Title', field: 'title'}, {id: 'duration', name: 'Duration', field: 'duration'} ] var options = { enableCellNavigation: true, enableColumnReorder: false, enableTextSelectionOnCells: true } var data = [] for (var i = 0; i < 500; i++) { data[i] = { title: 'Task ' + i, duration: '5 days' } } this.grid = new Grid('#myGrid', data, columns, options) }) } } </script> <style scoped> </style>
npm run dev
And text is not can be selected in cells. Please check it.
Even am struggling to copy cell text value.Any help would be really helpful ..
Thanks in advance
in package.json add dependencies:
"slickgrid-es6": "^2.1.0"
and devDependencies:npm install
create assets/slick.less:
HelloWorld.vue:
npm run dev
And text is not can be selected in cells. Please check it.