EasyUI Forum
May 07, 2024, 12:15:23 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Toolbar in datagrid  (Read 7209 times)
varonica
Full Member
***
Posts: 106


View Profile
« on: October 17, 2013, 07:52:13 PM »

Defining toolbar via array is awesome but at the same time i need to add some toolbar too via <div> tag. Can i define both toolbar within <div> tag and array ?

Example:
Code:
//script
$('#dg').datagrid({
toolbar: [{
iconCls: 'icon-edit',
handler: function(){alert('edit')}
},'-',{
iconCls: 'icon-help',
handler: function(){alert('help')}
}],
        toolbar: '#tb'
});

//html
<div id="tb">
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true"/a>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-help',plain:true"/a>
</div>

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 18, 2013, 07:32:48 PM »

The toolbar property can be an array or a selector, you can only choose one of them.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!