Balloon.2.12 —— UI组件之表格

方法入口

var $table= $().$b("table",config)  //返回组件的jQuery对象,即下面模板的jQuery对象

组件模板


<%if(selectType!="none"){%> <%}%> <% for(var i=0; i < headerKey.length; i++){ %> <% } %>
 <%= header[headerKey[i]] %>

配置属性(通用属性参看2.3节)

属性名 类型 默认值 说明
headerKey Array [] 列头key
header Array [] 对应列头key的中文名称
row Array [] 数据行
selectType String none none无选框,single单选框,mutil复选框
toolbar Array [] 工具栏里的按钮,按钮需要是Ballon的button对象
tplUrl String template/select.html 模板路径
方法(通用方法参看2.3节)
getSelectRow
说明 获得当前的选中行
入参  
返回 selectRow 当前选中行的数组集合

你可能感兴趣的:(Balloon组件)