説明なし

zhixin a057f222b7 Update undefinedText property. 12 年 前
README.md 30440926da add scroll for table and add scroll example. 12 年 前
bootstrap-table.css da0243af66 support bootstrap 3 12 年 前
index.html a057f222b7 Update undefinedText property. 12 年 前
jquery.bootstrap.table.js 8e97018881 Add undefinedText property. 12 年 前

README.md

bootstrap table

Simple table for bootstrap. Examples and documentation

How to use:

<table id="table"></table>

$('#table').bootstrapTable({
    sortName: 'code',
    sortOrder: 'desc',
    columns: [
        {field: 'code', title: 'Code', align: 'left', width: 200, sortable: true, sorter: function(a, b) {
            return a < b;
        }},
        {field: 'name', title: 'Name', align: 'center', width: 100},
        {field: 'price', title: 'Price', align: 'right', valign: 'middle', width: 200, formatter: function(value, row) {
            return 'the price is: ' + value;
        }}
    ],
    data: [
        {code: '123', name: 'hello 123', price: '$123'},
        {code: '222', name: 'hello 222', price: '$222'},
        {code: '321', name: 'hello 321', price: '$321'}
    ]
});

$('#table').bootstrapTable('load', [
    {code: '123', name: 'hello 123', price: '$123'},
    {code: '222', name: 'hello 222', price: '$222'},
    {code: '321', name: 'hello 321', price: '$321'}
]);

$('#table').bootstrapTable('append', [
    {code: '123', name: 'hello 123', price: '$123'},
    {code: '222', name: 'hello 222', price: '$222'},
    {code: '321', name: 'hello 321', price: '$321'}
]);

$('#table').bootstrapTable('mergeCells', {
    index: 1,
    field: 'code',
    rowspan: 2,
    colspan: 2
});