Dynamic Data Table Plugin ZBTable (Original)

Release Date: 2018-12-04 23:24
Plugin Instructions
evenRowClass、oddRowClass、curRowClassUsed for styling and can be customized;
overflowHeightSpecifies the height at which the table tbody displays a scrollbar;
In the titles parameter, title specifies the column header text, keyName specifies the key in the JSON data, checkBox indicates whether to display a checkbox, and width specifies a customizable column width;
The data parameter binds the data;
Plugin usage demo:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | $('#test').ZBTable({ //evenRowClass:'zbt-evenRow',//CSS class for even-numbered table rows //oddRowClass:'zbt-oddRow',//CSS class for odd-numbered table rows //curRowClass:'zbt-curRow',//CSS class for hovered table rows //overflowHeight: "260px",//Height at which the scrollbar appears titles:[{ title: "id", keyName: "id", width: 40, checkBox: true }, { title:"Name", keyName:"name" },{ title:"Age", keyName:"age", width: 60 },{ title:"Height", keyName:"height" },{ title:"Weight", keyName:"weight" },{ title:"Gender", keyName:"sex" }], data: testData}); |
This is the first plugin I have ever published and also the first jQuery plugin I have written. The reason I set a small JQ Coin download fee is to allow me to download, explore, learn from, and modify more plugins, so I can publish more work in the future. I hope you can understand and support this beginner's effort. Even a small contribution would mean a lot, especially if this plugin helps you. All future plugins will be open source and free.
The next version of the table plugin will include pagination, provide an external API for retrieving table values, and be released as free open-source software. Thanks.