Open KES777 opened 2 weeks ago
Website Page https://tabulator.info/docs/6.3/options
Describe the issue From the documentation it is not clear how to change options for already existing table. eg.
var customT = Tabulator.findTable('#id')[0]; customT.options.ajaxURL = "/ajax/db.json"; customT.setData();
Will load data from ajaxURL which was provided during first start.
ajaxURL
Q: Curious, why setData do not use updated URL?
setData
Answering my own question: A: This is not documented, but Tabulator copies that value into url property. And then ignores ajaxURL. (Why this is done?)
url
Also setUrl is not documented.
setUrl
//initialize setup options initialize(){ this.loaderPromise = this.table.options.ajaxRequestFunc || Ajax.defaultLoaderPromise; this.urlGenerator = this.table.options.ajaxURLGenerator || Ajax.defaultURLGenerator; if(this.table.options.ajaxURL){ this.setUrl(this.table.options.ajaxURL); }
Website Page https://tabulator.info/docs/6.3/options
Describe the issue From the documentation it is not clear how to change options for already existing table. eg.
Will load data from
ajaxURL
which was provided during first start.Q: Curious, why
setData
do not use updated URL?Answering my own question: A: This is not documented, but Tabulator copies that value into
url
property. And then ignoresajaxURL
. (Why this is done?)Also
setUrl
is not documented.