Navneet Chanalia's SharePoint Blog
Thursday, 2 August 2018
How to add custom buttons in w2ui grid?
toolbar: {
items: [
{ type: 'break' },
{ type: 'button', id: 'mybutton', caption: 'My other button', img: 'w2ui-icon-check' }
],
onClick: function (event) {
switch (event.target) {
case 'mybutton':
//business logic here
break;
}
},
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment