datatable.options.progress.callback¶
callback
=
This option controls the custom progress-reporting function.
Parameters¶
return
functionCurrent callback value. Initially, this option is set to None.
value
functionNew callback value. If None, then the built-in progress-reporting
function will be used. Otherwise, the value specifies a function
to be called at each progress event. The function should take a single
parameter p, which is a namedtuple with the following fields:
p.progressis a float in the range0.0 .. 1.0;p.statusis a string, one of'running','finished','error'or'cancelled';p.messageis a custom string describing the operation currently being performed.
The content on this page is licensed under the Creative Commons Attribution 4.0 License
(CC BY 4.0) ,
and code samples are licensed under the MIT License.