Re-render options after @search-change
See original GitHub issueOn my case, what a I need is to call an Ajax call after the @search-change
redefining the options then. But, it seem that setting the options remotely is not permitted.
<template lang="pug">
treeselect(
v-model="value"
:options="options"
@search-change="searchChange"
)
</template>
<script>
export default {
options: [],
value: null,
methods: {
searchChange () {
this.doAjaxRequest().then((body) => {
this.options = body.data
})
}
}
}
</script>
Doing this way causes the options to be emptied. Am I doing something wrongly or do I have to implement it?
Example: http://sagalbot.github.io/vue-select/docs/Advanced/Ajax.html
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Component doesnt rerender on state change - Stack Overflow
I am managing my state in a custom Hook and after an put request to my backend my state gets updated. This works...
Read more >[Windows 11/10] Change the Size of display, Display ... - ASUS
Type and search [Change the size of text, apps, and other items] in the ... the following notification after adjusting the display settings, ......
Read more >Set refresh interval—Portal for ArcGIS
A refresh interval keeps your maps in sync with the latest data while the map is open. For example, you might have a...
Read more >When does React re-render components? - Felix Gerschau
React DevTools lets you highlight renders under Components -> View Settings -> Highlight updates when components render.
Read more >ulmb alienware - Paddle Tennis Roma
Diese Option verbessert Alienware 360Hz Gaming Monitor Inch FHD (Full HD 1920 x ... 5" monitor featuring the world's fastest refresh rate of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rinterliche @sandeep240288 Sorry for getting back to you so late! Currently vue-treeselect doesn’t support that feature, but it has been planned though.
Hi! Async searching is finally landed in v0.0.31. Check out: https://vue-treeselect.js.org/#async-searching