阅读 1138

Bootstrap-table固定列插件,支持右部固定

原文链接: www.npmjs.com

bootstrap-table-fixed-columns-pro

Fixed Columns extension of bootstrap-table

the original 'bootstrap-table-fixed-columns' project only support fixed table columns from left to right, this project support fixed table columns from right to left.

install

npm install bootstrap-table-fixed-columns-pro

Options

data-fixed-columns / fixedColumns

  • type: Boolean
  • description: set true to enable fixed columns.
  • default: false

data-fixed-number / fixedNumber

  • type: Number
  • description: the number of fixed columns.
  • default: 1

fixedFrom

  • type: string
  • description: the direction of fixed columns.
  • default: left
  • values: right, left

License

The MIT License.

example

if you wnat the table will fixed columns from right to left, you can use just like this

$('#demoTable').bootstrapTable({ fixedColumns: true, fixedFrom: 'right', fixedNumber: 3 });

文章分类
前端