表i18n 增强
Bootstrap Table的表i18n增强扩展
使用插件:bootstrap-table-i18n-enhance
用法
<script src="extensions/i18n-enhance/bootstrap-table-i18n-enhance.js"></script>
方法
changeLocale
-
更改表区域设置。
-
参数
- 字符串:localeId
-
例:
$table.bootstrapTable("changeLocale", "zh_TW");
-
参数
changeTitle
-
更改列的标题。
-
参数
- 对象:对象的键是列字段,值是新标题。
-
例:
$table.bootstrapTable("changeTitle", { columnA.field: "New column A title.", columnB.field: "New column B title." });
-
参数