Code Monkey home page Code Monkey logo

Comments (8)

riophae avatar riophae commented on May 22, 2024 1

@rinterliche @sandeep240288 Sorry for getting back to you so late! Currently vue-treeselect doesn't support that feature, but it has been planned though.

from vue-treeselect.

chenEdgar avatar chenEdgar commented on May 22, 2024

when have a look in the source code, you will find that each vue-treeselect component will initicial the options in create life circle by calling initialize method. So if you want to rerender options using data by async, you need to use loadRootOptions or loadChildrenOptions. another method is not render it until you wait a ajax return.

from vue-treeselect.

sandeep240288 avatar sandeep240288 commented on May 22, 2024

How can I call an ajax request to a backend? Please provide a code demo. which will help a lot

from vue-treeselect.

rinterliche avatar rinterliche commented on May 22, 2024

@chenEdgar loadRootOptions and loadChildrenOptions are passed as props. I need a way for the search input to execute an certain callback on change, changing the options.

from vue-treeselect.

chenEdgar avatar chenEdgar commented on May 22, 2024

I see. you did it in your initial comment demo link.

from vue-treeselect.

sandeep240288 avatar sandeep240288 commented on May 22, 2024

I want options to be reevaluated from the database once a property change in parent div.

`the code is as follows

Select Standard: {{std.id +' - '+ std.description}}

///`
once an element is selected in above dropdown, it should trigger the new set of options based on the id of a selected element in this option.

from vue-treeselect.

chenEdgar avatar chenEdgar commented on May 22, 2024

@sandeep240288 sorry, I can't understand you. can you show us your code or reproducing a demo?

from vue-treeselect.

riophae avatar riophae commented on May 22, 2024

Hi! Async searching is finally landed in v0.0.31. Check out: https://vue-treeselect.js.org/#async-searching

from vue-treeselect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.