GitHub で表示

テーブル i18n 拡張

Bootstrap Table のテーブル i18n 拡張。

使用方法

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

i18n 拡張

メソッド

changeLocale

テーブルのロケールを変更します。

  • パラメータ: localeId
  • 例: $table.bootstrapTable('changeLocale', 'zh_TW')

changeTitle

列のタイトルを変更します。

  • パラメータ: object、オブジェクトのキーは列フィールド、値は新しいタイトルです。
$table.bootstrapTable('changeTitle', {
  columnA.field: 'New column A title.',
  columnB.field: 'New column B title.'
})