ajax:option
option to the address of the JSON data source.
data
option in the initialisation object, passing in an array of data to be used (like all other DataTables handled data, this can be arrays or objects using thecolumns.data
option).A table
must be available on the page for DataTables to use. This examples shows an empty table
element being initialising as a DataTable with a set of data from a Javascript array. The columns in the table are dynamically created
based on the columns.title
configuration option.
serverSide:option
option to true
and providing an Ajax data source through the ajax:option
option.
First name | Last name | Position | Office | Start date | Salary |
---|---|---|---|---|---|
First name | Last name | Position | Office | Start date | Salary |
Try It Real Time