{hero}

autoFill.enable

Since: AutoFill 2.2.0

Initial enablement state of AutoFill.
Please note - this property requires the AutoFill extension for DataTables.

Description

It can be useful to disable AutoFill's user input controls at certain times, depending on the state of your application. This option provides that ability when the table is initially created, while the autoFill().enable() and autoFill().disable() methods provide the option to enabling the user interaction after the table has been created.

Type

boolean

Description:
  • true - AutoFill is enabled when the DataTable is created
  • false - AutoFill is not enabled, and can later be enabled via the API.

Default

  • Value: true

AutoFill is enabled

Example

Disable AutoFill on initialisation:

new DataTable('#myTable', {
	autoFill: {
		enable: false
	}
});

Related

The following options are directly related and may also be useful in your application development.