ligerui的toolbar中怎么加text文本框
展开全部
方法一:
通过jQuery的改dom方法来搞,比较简单,一个分割条加一句话
[html] view plain copy print?
//工具条
$("#toptoolbar").ligerToolBar({ items: [
{text: '刷新',id:'t1',icon:'refresh'},
{text: '新增',id:'t2',icon:'add'},
{text: '修改',id:'t3',icon:'modify'},
{text: '删除',id:'t4',icon:'delete'},
{text: '查询',id:'t5',icon:'search2'},
{text: '打印',id:'t8',icon:'print'}
]
});
$("div[toolbarid='t1']","#toptoolbar").after("<div style='float:left;margin-left:2px;'><hr width='1' size='10'/></div>"); //在t1后面加一个隔条
$("div[toolbarid='t3']","#toptoolbar").after("
通过jQuery的改dom方法来搞,比较简单,一个分割条加一句话
[html] view plain copy print?
//工具条
$("#toptoolbar").ligerToolBar({ items: [
{text: '刷新',id:'t1',icon:'refresh'},
{text: '新增',id:'t2',icon:'add'},
{text: '修改',id:'t3',icon:'modify'},
{text: '删除',id:'t4',icon:'delete'},
{text: '查询',id:'t5',icon:'search2'},
{text: '打印',id:'t8',icon:'print'}
]
});
$("div[toolbarid='t1']","#toptoolbar").after("<div style='float:left;margin-left:2px;'><hr width='1' size='10'/></div>"); //在t1后面加一个隔条
$("div[toolbarid='t3']","#toptoolbar").after("
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询