You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
In my company we use the select field for most of our inputs.
Using this pattern we were able to create a consistent design within a big and modular rule builder with lots and lots of inputs:
Here's a demo to show how its all fitting together nicely.
What I'm basically thinking is this, if you add an 'no-data' property to VSelect to force it to work without any items.
Now it has the ability to show anything you like insidetemplate #no-data
Maybe this example or this thinking process will help anyone who was thinking of creating custom drop downs like this.
If you find it useful, please share your thoughts.
<v-select
no-data
:model-value="displayValue"
>
<template #no-data>
...anything you like
</template>
</v-select>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
In my company we use the select field for most of our inputs.
Using this pattern we were able to create a consistent design within a big and modular rule builder with lots and lots of inputs:
Here's a demo to show how its all fitting together nicely.
What I'm basically thinking is this, if you add an 'no-data' property to VSelect to force it to work without any items.
Now it has the ability to show anything you like inside
template #no-data
Maybe this example or this thinking process will help anyone who was thinking of creating custom drop downs like this.
If you find it useful, please share your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions