随笔分类 -  EasyUI

摘要:以下功能实现朋友们若有更好的思路办法,欢迎留言交流。1.关闭其他标签页(右键菜单触发,保留左侧第一个欢迎tab) 问题:取到的数组tabs长度会随着tab的关闭而变化 思路:先遍历需要关闭的标签页tabs,组成一tabTitle数组,再遍历这个tabTitle数组,根据title对各个tab执行关闭function tabsOtherClose() { var nowTitle=$('#mainTabs').tabs('getSelected').panel('options').title; var tabs=$('#mainTabs& 阅读全文
posted @ 2013-07-31 15:00 youryida 阅读(324) 评论(0) 推荐(0)
摘要:如题,在treegrid里,按照api里getEditor方法的说明,getEditoroptionsGet the specified editor, the options contains two properties:index: the row index.field: the field name. var nameEditor=$('#menuTable').treegrid('getEditor', {id:editingId,field:"name"});这样应该可以取到editor对象,但是测试发现只能获取到nameEdi 阅读全文
posted @ 2013-07-26 21:52 youryida 阅读(8890) 评论(10) 推荐(1)