datatable.options.progress.callback¶
This option controls the custom progress-reporting function.
Parameters¶
return
function
Current callback
value. Initially, this option is set to None
.
new_callback
function
New callback
value. If None
, then the built-in progress-reporting
function will be used. Otherwise, the new_callback
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.progress
is a float in the range0.0 .. 1.0
;p.status
is a string, one of'running'
,'finished'
,'error'
or'cancelled'
;p.message
is 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.