preAutoFill
An auto fill action is about to be applied to the table.
Please note - this property requires the AutoFill extension for DataTables.
Description
This event is triggered when an fill action is about to write changes to a DataTable - it occurs after the fill drag has been completed and the new cell values computed, but before those values are written into the table.
This event provides the ability to modify the new values, should that ability be required, by modifying the set
parameter in the object that represents each cell from the fill. Please see the description in the autoFill
event for details about this parameter and how it can be accessed.
Type
function function( e, datatable, cells )
- Parameters:
Name Type Optional 1 e
No jQuery event object
2 datatable
No DataTables API instance for the table the AutoFill was completed on
3 cells
No A matrix of the cells that were auto filled. Please see the description in the
autoFill
event for full details on the structure of this array.