-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue-multiselect issue on edit #11
Comments
same problem ... |
Ok you have to pass the object selected by from controller example $category_selected = $realisation->categorie; |
@mediaboost how to set it ? |
example : add categorie prop in Form.js in form-element-right.blade.php see v-model pass the value from controller done :) |
v-model="form.categorie" |
@mediaboost thanks for the quick answer! I'm passing roles_id which gives me back
And I got this in my form :
Knowing that
But it doesn't work. Any idea why? |
Re ... on va passer en français car je vois que tu l'es :) ton roles_id de ton controller n'est pas bon si le multiselect n'est pas multiple donc dans ton exemple tu dois avoir ensuite tu dois ajouter une propriété role_id dans ton form_js et pour finir ajouter dans ton v_model ensuite si c'est affichage multiple ... il faut tester en envoyant $adminUser->roles |
@mediaboost merci! Voici donc le résultat final :
avec roles qui renvoie
et role_id qui renvoie :
J'ai rajouté dans mon Form.js le champ. Et pourtant aucun résultat toujours ! Très frustrant ^^" |
@mediaboost ok très bizarre, avec exactement ce que tu as dis ça marche appart le champ dans v-model qui doit être égal à |
Hi,
how to set selected the option when i'm editing?
i follow all the example from 'articles-with-relationship'
but i dont know why the multiselect doesn't set the value.
The text was updated successfully, but these errors were encountered: