Hello
could someone help regarding adding tooltip to pagination button?
I try to implement Jarry's example but hot sure how.
Here is what I try but it does not show tooltip:
var mypager = $('#dg').datagrid('getPager');
mypager.pagination({
showPageList:false,
buttons:[{
iconCls:'left',
tooltip: 'tooltip1',
handler:function(){
alert('search');
}
},{
iconCls:'right',
tooltip: 'tooltip2',
handler:function(){
alert('edit');
}
}]
}).find('.l-btn').each(function(){
var opts = $(this).linkbutton('options');
if (opts.tooltip){
$(this).tooltip({
content: opts.tooltip
})
}
});
Thank you.