슬프지만
bootstrap-vue 에서 지원하는 dropdown의 select 이벤트는 없는거같다 ..
(내가 못찾았을수도 있음)
그래서 v-model로 쓸라고했는데
역시 지원하지 않는다 .. 너무슬픈이야기 ..
하지만 방법은 있지
<b-dropdown-item v-for="option in ddTestVm.options"
:key="option.value"
:value="option.value"
@click="ddTestVm.ddTestSelectedOption = option.value">
dropdown item을 v-for로 돌리고
@click 에서 v-model 역할을 해주면 된다
vue.js select / dropdown selected item vm binding not working (bootstrap-vue)
I am trying to create a simple vue that binds the selected item from a select/dropdown to a property in the vm. I haven't been able to find a clear and simple example of how this is down when using...
stackoverflow.com
'frontend' 카테고리의 다른 글
[Axios] Axios의 catch()문에서 Status Code 받기 (0) | 2019.04.15 |
---|