Reputation: 1177
I like to how to resize the column of the table using header for the following example which uses bootstrap-table.
http://issues.wenzhixin.net.cn/bootstrap-table/#extensions/resizable.html
Upvotes: 1
Views: 14838
Reputation: 1403
The latest version of bootstrap-table and resizable plugin seems to reference this:
https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/resizable
A simple fiddle proves that the headerOnly
toggles this behavior:
http://jsfiddle.net/dabros/egqLsfv6/1/
$(function () {
$('#table').bootstrapTable({
resizable: true,
headerOnly: true,
data: data
});
});
Next time please try to include a fiddle yourself, even if your unsure how to make it fully functional, as it makes answering questions like this much much easier - you even often solve it yourself before you finish the fiddle.
Upvotes: 3