Autocomplete / tags and AJAX
Autocomplete / tags and AJAX
Loren Maxwell
Posts: 409Questions: 100Answers: 10
in Editor
Just a quick question / request -- any chance that the new (and wonderful) autocomplete
and tags
fields will eventually have the same AJAX capabilities as a regular AJAX request?
For example, the US state of Texas is divided into 254 counties.
Something like this would help get all the relevant counties from a table with all counties for every state in the US:
new DataTable.Editor({
ajax: '/api/data',
fields: [{
label: 'Counties:',
name: 'county',
type: 'tags',
ajax: {
url: '/api/counties',
data: {
state: 'Texas'
}
}],
// ...
})
This question has an accepted answers - jump to answer
Answers
Do you mean the ability to add extra information to the Ajax request, or provide the other options for it as an object (like
ajax.data
)?Allan
Yeah -- exactly like that. I think it would make a world of difference in terms of the flexibility on the backend.
Oh sorry -- I don't think I read your question correctly -- I meant like
ajax.data
.Good idea, thank you. I've got it on the list .
Allan