Vue-form-generator: Is there a properly working example for async vueMultiSelect?

Created on 14 Oct 2017  路  4Comments  路  Source: vue-generators/vue-form-generator

I tried the given example from the documentation and ran into some issues. Tried to set the values for the vueMultiselect when resolving the promise of an ajax-GET (via axios) in the onSearch-eventhandler and failed. And I think I'm in the wrong context when trying to use "this" in order to set the isLoading property (getting "this is undefined").

I only need to know how to access the vueMultiSelect properties programmatically when executing the event handlers (e. g. for onChange / onSearch) in order to either set isLoading or the values, etc. for the MultiSelect.

Most helpful comment

Thanks! I've just made this work with a promise system, for anyone who has the same issue, see this gist with an example of use: https://gist.github.com/SebastienTainon/7d3add17452f36fda3636835a729bb4e

See here on how to register custom fields in vue-form-generator: https://icebob.gitbooks.io/vueformgenerator/fields/custom_fields.html

All 4 comments

@miseeger I'm facing the same problem, have you found a solution?

Sorry, not yet.

Thanks! I've just made this work with a promise system, for anyone who has the same issue, see this gist with an example of use: https://gist.github.com/SebastienTainon/7d3add17452f36fda3636835a729bb4e

See here on how to register custom fields in vue-form-generator: https://icebob.gitbooks.io/vueformgenerator/fields/custom_fields.html

Thank you for sharing 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lionel-bijaoui picture lionel-bijaoui  路  5Comments

ndro picture ndro  路  4Comments

zwx00 picture zwx00  路  3Comments

blackfyre picture blackfyre  路  4Comments

reardestani picture reardestani  路  5Comments