scrimba
Vue Grid Component
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Vue Grid Component
AboutCommentsNotes
Vue Grid Component
Expand for more info
index.js
run
preview
console
let data = [{
name: 'Ted',
surname: 'Smith',
position: 'Java Developer',
email: 'ted.smith@gmail.com',
company: 'Electrical Systems',
age: 30,
knownledge: 'Java, Ruby'
}, {
name: 'Ed',
surname: 'Johnson',
position: 'C/C++ Market Data Developer',
email: 'ed.johnson@gmail.com',
company: 'Energy and Oil',
age: 35,
knownledge: 'C++'
}, {
name: 'Sam',
surname: 'Williams',
position: 'Technical Analyst',
email: 'sam.williams@gmail.com',
company: 'Airbus',
age: 38,
knownledge: ''
}, {
name: 'Alexander',
surname: 'Brown',
position: 'Project Manager',
email: 'alexander.brown@gmail.com',
company: 'Renault',
age: 24,
knownledge: ''
}, {
name: 'Nicholas',
surname: 'Miller',
position: 'Senior Software Engineer',
email: 'nicholas.miller@gmail.com',
company: 'Adobe',
age: 33,
knownledge: 'Unix, C/C++'
}, {
name: 'Andrew',
surname: 'Thompson',
position: 'Agile Project Manager',
email: 'andrew.thompson@gmail.com',
company: 'Google',
age: 28,
knownledge: ''
}, {
name: 'Ryan',
surname: 'Walker',
position: 'Application Support Engineer',
email: 'ryan.walker@gmail.com',
company: 'Siemens',
age: 39,
knownledge: 'ActionScript'
}, {
name: 'John',
surname: 'Scott',
position: 'Flex Developer',
email: 'john.scott@gmail.com',
company: 'Cargo',
age: 45,
knownledge: 'Flex'
}];

var app = new Vue({
el: '#app',
data: function() {
return {
gridConfig: {
title: 'Vue with FancyGrid',
theme: 'gray',
width: 700,
height: 400,
data: data,
resizable: true,
defaults: {
type: 'string',
width: 100,
sortable: true,
editable: true,
resizable: true
},
selModel: 'rows',
trackOver: true,
columns: [{
type: 'select'
}, {
index: 'company',
title: 'Company'
}, {
index: 'name',
title: 'Name'
}, {
index: 'surname',
title: 'Sur Name'
}, {
index: 'age',
title: 'Age',
type: 'number',
width: 80
}, {
index: 'email',
title: 'Email',
width: 160
}]
}
}
},
components: {
// register component
'fancy-grid-vue': FancyGridComponent
}
});
Console
"Download the Vue Devtools extension for a better development experience: https://github.com/vuejs/vue-devtools"
,
"You are running Vue in development mode. Make sure to turn on production mode when deploying for production. See more tips at https://vuejs.org/guide/deployment.html"
,
"%cFancy%cGrid%c %cTrial%c Version!"
,
"color:#A2CFE8;font-size: 14px;font-weight: bold;"
,
"color:#088EC7;font-size: 14px;font-weight: bold;"
,
"font-weight:bold;color: #515151;font-size: 12px;"
,
"color: red;font-weight: bold;font-size: 14px;"
,
"font-weight:bold;color: #515151;font-size: 12px;"
,
"%cPurchase license for legal usage! Sales email: sales@fancygrid.com"
,
"font-weight:bold;color: #515151;font-size: 12px;"
,
index.html
-10:34