w2ui
Home
Get started
Demos
Docs
Blog
Support
Layout
Grid
Toolbar
Sidebar
Tabs
Form
Popup
Utilities
ver 1.3
ver 1.4
ver 1.5
ver 2.0
Grid
Overview
Events
Properties
Methods
w2grid.buttons
Object that contains default toolbar items
Object, default see below
If you would like to overwrite default buttons for the grid, you can do this in the grid's prototype, so, all the grids will have same buttons.
var btn = w2obj.grid.prototype.buttons; btn['reload'].icon = 'icon-repeat'; btn['columns'].icon = 'icon-layers';
The default object is:
buttons: { 'reload' : { type : 'button', id : 'reload', img : 'icon-reload', hint : w2utils.lang('Reload data in the list') }, 'columns' : { type : 'drop', id : 'column-on-off', img : 'icon-columns', hint : w2utils.lang('Show/hide columns'), arrow : false, html: '' }, 'search' : { type : 'html', id : 'search', html : '
' }, 'search-go' : { type : 'check', id : 'search-advanced', caption : w2utils.lang('Search...'), hint : w2utils.lang('Open Search Fields') }, 'add' : { type : 'button', id : 'add', caption : w2utils.lang('Add New'), hint : w2utils.lang('Add new record'), img : 'icon-add' }, 'edit' : { type : 'button', id : 'edit', caption : w2utils.lang('Edit'), hint : w2utils.lang('Edit selected record'), img : 'icon-edit', disabled: true }, 'delete' : { type : 'button', id : 'delete', caption : w2utils.lang('Delete'), hint : w2utils.lang('Delete selected records'), img : 'icon-delete', disabled: true }, 'save' : { type : 'button', id : 'save', caption : w2utils.lang('Save'), hint : w2utils.lang('Save changed records'), img : 'icon-save' } }
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus