-
<VaSelect
v-model="state.userId"
class="select"
label="User"
:options="
userStore.users.filter(
(user) =>
user.UserRole.length !== 0
)
"
value-by="userId"
text-by="name"
searchable
:disabled="state.isLoading"
prevent-overflow
/> how can i use textBy with 2 key so it like |
Beta Was this translation helpful? Give feedback.
Answered by
m0ksem
Jun 21, 2023
Replies: 1 comment 1 reply
-
Hi, @Fanreza. You can pass function to
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Fanreza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, @Fanreza. You can pass function to
text-by
:text-by="(option) => option.name + ' ' + option.id"