I'm trying to make use of meta.cursor to display a progress bar as well. The following example works fine:
Papa.parse(file, {
step: function(results, parser){
// This gives expected result for cursor
console.info(result.meta.cursor);
}
}
But when I make use of parser.pause() and parser.resume() the value for meta.cursor is incorrect.
Papa.parse(file, {
step: function(results, parser){
// This does not give the correct value for cursor
console.info(result.meta.cursor);
parser.pause();
parser.resume();
}
}
I am using PapaParse the latest version
5.1.1
.I'm trying to make use of
meta.cursor
to display a progress bar as well. The following example works fine:But when I make use of
parser.pause()
andparser.resume()
the value formeta.cursor
is incorrect.Could you please kindly check? Thanks!