Players.table = { title: 'List of all players', columns: { name: {
},
surname: {
}
} }
if (Meteor.isServer) { Players.allow({ insert: function () { return true; }, update: function () { return true; }, remove: function () { return true; } }); }
<h4>After all open these links</h4>
localhost:3000/cms/Players/find localhost:3000/cms/Players/insert
<br/><br/>
<h2>Customization</h2>
```js
Games.table = {
title: 'List of all games',
style: {
table: {
class: 'table table-hover'
},
thead: {
class: ''
},
tbody: {
class: ''
}
},
buttons: {
edit: {
label: '<i class="fa fa-pencil-square-o" alt="Edit"></i> Edit',
class: 'btn btn-xs btn-default',
auth: function() {
return true;
}
},
delete: {
label: '<i class="fa fa-trash" alt="Delete"></i> Delete',
class: 'btn btn-xs btn-danger',
auth: function() {
return true;
}
},
showNavButtons: true,
showActionButtons: true
},
showNo: true, // default true
columns: {
title: {
},
gamer1: {
relation: 'Players',
display: {
fields: {
0: 'name',
1: 'surname'
},
symbol: ' '
}
},
score1: {
class: function(data) {
if (data > 5) {
return 'success';
}
}
}
}
}