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
  • Installation
  • Class
  • Render

Was this helpful?

DataTables

PreviousData BindingNextConfiguration

Last updated 2 years ago

Was this helpful?

Displaying data in HTML tables is a staple display for any web application. The plugin adds advanced features to any HTML table.

DataTables for WireBootstrap brings DataTables into the WireBootstrap framework.

Installation

The DataTables for WireBootstrap library is located in wire-datatables.js. This and other other related files can be installed from the NPM package registry at@wirebootstrap/wire-datatables.

npm install @wirebootstrap/wire-datatables

Class

To create a new instance of the DataTables for WireBootstrap component, use the wire.datatables class.

const myTable = new wire.datatables();

Render

Render the component using an HTML table element.

<table id="table" class="table table-hover table-striped"></table>
<script>
    new wire.datatables().render("#table", {});
</script>
<wire-datatables wr-config="" css="table-hover table-striped"></wire-da
<WireComponent component="wire.datatables" config={}>
    <table className="table table-hover table-striped"></table>
</WireComponent>
<table 
    wire-component="wire.datatables" 
    v-wire-config="" 
    class="table table-hover table-striped">
</table>
<table 
    wire-component="wire.datatables" 
    [config]="" 
    class="table table-hover table-striped">
</table >

DataTables for WireBootstrap will load the DataTables JavaScript file from a if it's not found on the page. It will also load the DataTable CSS file from the same .

DataTables for WireBootstrap extends the class. As such, it inherits all the base functionality of that class.

CDN
CDN
wire.ui.component
DataTables
DataTables for WireBootstrap