Charge data after N° time
Charge data after N° time
prox108
Posts: 27Questions: 12Answers: 0
Hi guys,
I am loading data on a Datable that takes less than a second in charge.
Do you know if datatable have a propiety where you can define how many time has to happend after it load data on the datable?
This question has an accepted answers - jump to answer
Answers
I don't understand your question. You say that loading the data for the table takes less than a second? But I don't know what you mean by defining time? Do you mean you want something to happen after it has loaded? If so, use
ready()
.Allan
What I want is to add more time before it loads, to see the default charging message of the datatable
Sounds like you want to display the processing spinner for a short time and that the time to load the data is too short to see the spinner. Is this correct?
There isn't anything built in to delay Datatables loading the data. Most people want the data loaded without any delay
To provide suggestions we will need to understand how you are loading the data, ie, HTML sourced table,
ajax
, jQuery ajax(),data
, etc. Please post your Datatables init code and any relevant data loading code.One option, depending on your config, is to use the
processing()
API.Kevin
Thanks, that is what I wanted to know!
Here is an example:
Data:
Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide
Do you still have questions?
Kevin
No , thanks for the help.