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

Methods

PreviousEventsNextDate Range Picker

Last updated 1 year ago

Was this helpful?

DataTables for WireBootstrap extends the class. As such, it inherits all its base methods.

The following methods are added to DataTables for WireBootstrap.

Name

Description

addRow(row)

Adds a new row to the table.

bind(rows)

Binds the table using the list of rows.

deleteSelectedRows

When using the feature, deletes all selected rows.

getSelectedRows

When using the feature, returns all selected rows in an array.

The following example adds a new row to the table component.

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

const row = { product: "Bikes", sales: 1883 };

table.addRow(row);
wire.ui.component
select
select