Pro Pack
Docs HomeProduct SiteSupport
  • Introduction
  • Installation
  • Chart.js
    • Configuration
    • Data Binding
    • Data Labels
  • Dataset Filter Labels
    • Installation
    • Configuration
    • Data Binding
  • DataTables
    • Configuration
    • Data Binding
    • Events
    • Methods
  • Date Range Picker
    • Configuration
    • Data Binding
    • Methods
  • iCheck
    • List
      • Configuration
      • Data Binding
      • Events
    • Filter
      • Configuration
      • Data Binding
  • Select2
    • Configuration
    • Data Binding
    • Events
    • Methods
  • Sparklines
    • Installation
    • Configuration
    • Data Binding
  • Toastr
    • Configuration
  • Web Frameworks
Powered by GitBook
On this page

Was this helpful?

  1. DataTables

Data Binding

PreviousConfigurationNextEvents

Last updated 3 years ago

Was this helpful?

DataTables for WireBootstrap does not use a which means it does not expect any specific set of fields in data bound to the component.

To bind the component to data, set the configuration's data property.

const rows = [
    { product: "Skates", sales: 1655},
    { product: "Bikes", sales: 1883 }
]

const table = new wire.datatables().render("#table", {
    data: rows
});
datamap