bootstrap table getRowByUniqueId根据唯一Id获取行数据的方法

bootstrap table getRowByUniqueId根据唯一Id获取行数据,使用此方法的前提是要指定那列字段为唯一字段(主键字段)。

bootstrap table updateRow更新一行数据的方法

通过bootstrap table updateRow方法更新行数据,使用场景通常是选中一行弹出窗,在窗口表单修改完数据后,使用updateRow更新bootstrap table选中行的数据,需要注replace参数的用法。

bootstrap table insertRow插入一行数据的方法

​通过bootstrap table insertRow方法插入一行数据到表格,需要传递两个参数一个是插入到哪一行以及需要插入的行对象。

bootstrap table removeAll把数据从表格中删除的方法

bootstrap table removeAll方法删除表格所有数据,无需参数。

bootstrap table remove把数据从表格中删除的方法

bootstrap table remove方法根据你设置的字段和对应的值把相应的数据从表格中移除掉。比如把选中的数据行从表格中删除就是很常见的操作。

bootstrap table prepend追加数据到表格头部方法

bootstrap table prepend把数据追加到表格头部的方法,这个方法刚好和append方法相反。

bootstrap table resetSearch重置搜索框

如果你开启了搜索框,可以通过resetSearch重置搜索框。

bootstrap table toggleView切换卡片视图方法

bootstrap table toggleView把列表模式切换到卡片视图模式。

bootstrap table toggleFullscreen全屏显示

bootstrap table toggleFullscreen全屏显示或取消全屏显示。

bootstrap table togglePagination隐藏显示分页

bootstrap table togglePagination隐藏显示分页器,如果已显示就会隐藏,如果没显示就会显示,效果图如下。

bootstrap table showLoading/hideLoading隐藏显示加载进度提示,并自定义提示文字

bootstrap table showLoading/hideLoading隐藏显示加载进度提示,并自定义提示文字。

bootstrap table resetWidth重新适配表格宽度的方法

bootstrap table resetWidth重新适配表格宽度的方法

bootstrap table resetView刷新表格视图的方法

​bootstrap table resetView刷新表格视图如宽度高度,bootstrap table本身不提供设置表格的width属性,只能设置某列的宽度,如果表格的父容器大小发生了变化(如缩小放大了窗口) 这时就可以用resetView方法刷新表格视图并会触发onResetView事件。

bootstrap table destroy注销表格方法

bootstrap table destroy注销销毁表格的方法,销毁后如果要继续使用就需要重新初始化bootstrap table。

bootstrap table append追加数据到表格末尾方法

​bootstrap table append把数据追加到表格末尾的方法,比如表格的原始数据是data数组,append方法相当于往data数组末尾追加数据。

bootstrap table load加载数据到表格的方法

bootstrap table本身自带了一套加载服务器端数据的机制,你无需自己用jquery的ajax方法去加载服务器端的数据,但是如果你仍然习惯jquery的ajax方法加载数据或你有自己的特殊需求,你可以用bootstrap table load方法来填充数据到表格。

bootstrap table checkInvert反选反向选中行的方法

bootstrap table checkInvert反选反向选中行的方法,反选就是比如你手动选中了1,2行,执行checkInvert反选方法方法后就会变成1,2行不选中其他行选中。

bootstrap table Refresh重新加载数据的方法

bootstrap table refresh重新加载数据的方法,同时也可重新设置分页相关的配置和refreshOptions方法类似。

bootstrap table uncheckBy根据条件取消中行的方法

bootstrap table checkBy根据设置的取消选中行,比如将id为1,5,8的行选中。

bootstrap table checkBy根据条件选中行

​bootstrap table checkBy根据设置的条件选中行,比如将id为1,5,8的行选中。