-
Notifications
You must be signed in to change notification settings - Fork 299
Special Field
Rati Wannapanop edited this page Apr 15, 2016
·
11 revisions
At the moment, vuetable
only has one special field. It might have something more in the future, but special field will always begins with double underscore __
.
-
__actions
If you name one of your field as
__actions
,vuetable
will automatically use the information provided viaitem-actions
property to generate array of buttons inside this table column. And when the user click on any of these buttons, avuetable:action
event will be dispatched with thename
of the action as the event argument along with the data row currently in process.You can capture this event in the parent Vue.js instance, and inspect the argument value to take any appropriate action based on that value.
new Vue({ el: '#app', methods: { viewProfile: function(email) { console.log('do something with email: ', email) } }, events: { 'vuetable:action': function(action, data) { console.log('vuetable:action', action, data) if (action == 'view-item') { this.viewProfile(data.email) } }, } })
- Properties
- Fields Definition
- Special Field
- Callbacks
- Detail Row
- Events
- Data Format (JSON)
- Sorting, Paging, and Page Sizing of Data
- Appending Other Parameters to the Query String
- Sample Data Using Laravel
- Customize the Pagination Info
- Pagination Components
- CSS Styling
- Using vuetable with Twitter's Bootstrap
- Displaying a Loading Animation
- Extending vuetable Pagination Component