View on GitHub

表格国际化增强

Bootstrap Table 的国际化增强扩展。

Usage

使用方法

<script src="extensions/i18n-enhance/bootstrap-table-i18n-enhance.js"></script>

Example

示例

国际化增强

Methods

方法

changeLocale

更改表格的语言区域。

  • Parameters: localeId
  • 参数:localeId

  • Example: $table.bootstrapTable('changeLocale', 'zh_TW')
  • 示例: $table.bootstrapTable('changeLocale', 'zh_TW')

changeTitle

更改列的标题。

  • Parameters: object, the object’s key is a column field, value is the new title.
  • 参数:object,对象的键是列字段,值是新的标题。

  • Example:
  • 示例:
$table.bootstrapTable('changeTitle', {
  columnA.field: 'New column A title.',
  columnB.field: 'New column B title.'
})