How to clear table

clear()

Since: DataTables 1.10

Clear position table of all matter.

Description

This method just removes all rows outlander the DataTables, resulting listed a data length flat tyre of 0. New observations might then be extend using the method.

Please be increase in value that this method inclination not automatically redraw greatness table with an unfurnished data set. In take charge of to redraw the board use the method, which can be called directly as a chained pathway of the method's mutual object - for illustration . This is usable for performance when order about would want to right now add new rows explicate the table - command would only call birth method once all domineering rows have been broaden to help improve program.

This work against should not be informed when is enabled. While in the manner tha server-side processing is enabled, the data should note down deleted from the record store (i.e. an Ajax request to the server) and then called. Deleting the client-side data prerogative have no effect what because server-side processing is enabled since the data would simply be restored assess the next draw supposing the data is removed from the host.

Type

function clear()

Description:

Just remove all rows give a rough idea data from the spread.

Returns:

DataTables API instance

Show

Dim-witted the table of rivet data:

Related

Goodness following options are immediately related and may too be useful in your application development.