Introduction
A WireBootstrap DataTable is a JavaScript class that contains an array of objects much like records in a database table. The data table contains dozens of methods for working with the array of objects including filers, transformations, and calculations. This class is located at wire.data.DataTable
.
The example below creates a new DataTable
from an array of objects. The raw array is put into a public property called Rows
. Also, a Columns
array is created that contains information about each column in the data table.
let users = [
{ Users: "jkratz", FullName: "Jamie Kratz" },
{ Users: "pdougherty", FullName: "Pat Dougherty" }
];
let table = new wire.data.DataTable(rows);
const rows = table.Rows;
const columns = table.Columns;
Last updated
Was this helpful?