Bootstrap table by wenzhixin

Working jquery bootstrap table, with pagination, search, sort and column selection.
Actual working features, not just displaying those records
Used it is some of my websites
https://github.com/wenzhixin/bootstrap-table


Code also has two js functions to sort by html content to go around sorting issue
htmlAttribTitle and htmlSorter

You just need to include files in screenshot, that is what I did

Edit 2019-05-25: Added another zip for v1.14.2 supporting Bootstrap v4
Please note: The default download will be downloading the old version which is v1.13


Public

Tested

Not My Work
Control all features using data attributes.
Still have some issues in Full-screen, Font Awesome 5, and table height column width with headers, but still worth the time you spend to insert it into your site.

Code I used to implement it was
<%
TableRows = ""
TableHead = "" & vbcrlf
TableHead = TableHead & "ID" & vbcrlf
TableHead = TableHead & "Img" & vbcrlf
TableHead = TableHead & "Title" & vbcrlf
TableHead = TableHead & "Tags" & vbcrlf
TableHead = TableHead & "Dated" & vbcrlf
TableHead = TableHead & "Status" & vbcrlf
TableHead = TableHead & "" & vbcrlf

For I = 1 to AllRows
BBlogID = rsDB.Fields.Item("ID").Value
BBlogTitle = rsDB.Fields.Item("Title").Value
BBlogDate = rsDB.Fields.Item("DateAdded").Value
BBlogBody = rsDB.Fields.Item("Body").Value
BBlogTags = rsDB.Fields.Item("Tags").Value
BBlogImg = rsDB.Fields.Item("ImageURL").Value
BBlogUID = rsDB.Fields.Item("UserID").Value
BBlogStatus = rsDB.Fields.Item("Status").Value

TableRows = TableRows & ""
TableRows = TableRows & "" & BBlogID & "" & vbcrlf
TableRows = TableRows & "<img src=""" & BBlogImage & """ width=""100px""/>" & vbcrlf
TableRows = TableRows & "" & BBlogTitle & "" & vbcrlf
TableRows = TableRows & " <i class=""far fa-edit text-dark"">" & vbcrlf
TableRows = TableRows & "" & vbcrlf
' TableRows = TableRows & "" & BBlogTitle & "" & vbcrlf
TableRows = TableRows & "" & BBlogTags & "" & vbcrlf
TableRows = TableRows & "" & BBlogDate & "" & vbcrlf
TableRows = TableRows & "" & BBlogStatus & "" & vbcrlf
TableRows = TableRows & "" & vbcrlf
Next

%>

<table data-toggle="table" data-pagination="true" data-search="true"
data-show-columns="true" data-cache="false" data-icons-prefix="fa"
data-id-field="ID" data-minimum-count-columns="3"
data-buttons-class="outline-dark"
data-classes="table table-sm"
>
<%=TableHead%>

<%=TableRows%>





<script>
function htmlSorter(a, b) {
var a = $(a).text().toUpperCase();
var b = $(b).text().toUpperCase();
if (a < b) return -1;
if (a > b) return 1;
return 0;
};
function htmlAttribTitle(a, b) {
var a = $(a).attr("title");
var b = $(b).attr("title");
if (a < b) return -1;
if (a > b) return 1;
return 0;
}
</script>

Views 3012 Downloads 1686

JS+JQuery UI
ANmarAmdeen
811
Revisions

v10.0