Configure ajax.dataSrc option other then during instantiation
Configure ajax.dataSrc option other then during instantiation
![QzCurious](https://secure.gravatar.com/avatar/2f9fee8fb5c6539e5c479b6e81b620ea/?default=https%3A%2F%2Fvanillicon.com%2F2f9fee8fb5c6539e5c479b6e81b620ea_200.png&rating=g&size=120)
So, is there a way to configure ajax.dataSrc other then during instantiation?
A setter api ajax.dataSrc(string_dataSrc) would be sweet!
This discussion has been closed.
Replies
Hi @QzCurious ,
ajax.dataSrc
can be a function, see the last example, so you can fine tailor it in there.Cheers,
Colin
@conlin
I need it be configured after instantiation. Sometime my ajax.url changed, and I need ajax.dataSrc be changed too!
Yep, as I said, if you make it a function, you can do whatever logic you want in it.