xworker.html.jqueryesayui.base.pagination/@buttons
事物 buttons(buttons)

- 父事物:
- pagination
- 描述者:
- 事物
- thing
- 继承:
- EasyUIArray
Defines customize buttons, each button contains two properties:
iconCls: the CSS class which will show a background image
handler: a handler function when button is clicked
The customize buttons can be declared from markup:
<div class="easyui-pagination" style="border:1px solid #ccc" data-options="
total: 114,
buttons: [{
iconCls:'icon-add',
handler:function(){alert('add')}
},'-',{
iconCls:'icon-save',
handler:function(){alert('save')}
}]">
</div>
The customize buttons can also be created using javascript:
$('#pp').pagination({
total: 114,
buttons: [{
iconCls:'icon-add',
handler:function(){alert('add')}
},'-',{
iconCls:'icon-save',
handler:function(){alert('save')}
}]
});
toJavaScriptCode
-
-