Vue.use(VueTables.client, {
perPage: 25
})
new Vue({
el: "#vue-tables-options",
data: {
columns: ['option', 'type', 'description', 'default'],
data: [{
option: 'headings',
type: 'Object',
description: 'table headings',
default: 'gleaned from the first row properties. underscores become spaces. First letter captialized'
}, {
option: 'sortable',
type: 'Array',
description: 'sortable columns',
default: 'all columns except for custom ones'
}, {
option: 'perPage',
type: 'number',
description: 'initial records per page',
default: "<code>10</code>"
}, {
option: 'perPageValues',
type: 'Array',
description: 'records per page options',
default: '<code>[10,25,50,100]</code>'
}, {
option: 'templates',
type: 'Object',
description: 'wrap your cell content with a template. You can also create new custom columns. e.g:<pre><code>templates: {<br> edit: function(row) {<br>return `<a href="#/${row.id}/edit"><i class=\'fa fa-edit\'></i></a>`<br>},<br>age:function(row) {<br> return this.calcAge(row.birth_date);<br> } <br>}</code></pre> The <code>this</code> keyword in the function will refer to the root vue instance',
default: '<code>{}</code>'
}, {
option: 'compileTemplates',
type: 'boolean',
description: 'compile vue.js logic on templates.<br>The logic is attached to <i>the component\'s instance</i>, so don\'t forget to factor in the scope. e.g: <pre><code>function(row) {<br> return `<span @click="$parent.doSomething(${row.id})">Click me</span>`</code><br>}</pre>If you are using a component it must be registered globally using <code>Vue.component</code>',
default: '<code>false</code>'
}, {
option: 'texts',
type: 'Object',
description: 'Table texts',
default: "<pre><code>texts:{<br>count:'{count} Records',<br>filter:'Filter Results:',<br>filterPlaceholder:'Search...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.