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
[Feature Request] Slots for v-textarea and v-text-field #6820
Comments
This, i need this. Did you find any workaround to achieve what you are showing in the gifs? |
No, the gifs are recorded from https://todoist.com |
Thank you for you quick answer. Regards |
I need it too for google place autocomplete, any suggestion? |
Seems like https://vuetifyjs.com/en/components/autocompletes/#asynchronous-items might do the job. |
This comment has been minimized.
This comment has been minimized.
We ended up using tiptap in the meantime. https://tiptap.dev/suggestions |
Might be a little late, but tiptap allows you to render arbitrary Vue components within the editor. Together with a slightly modified version of @tiptap/extension-mention and some input rules, I can create exactly what I showed in the gifs. It's more work to integrate than my proposed solution, but on the other hand it's way more customizable. Demos |
This comment has been minimized.
This comment has been minimized.
I think we'll just recommend using tiptap for this, it's a pretty complex feature and seems to have been done well already. In Vuetify 3 it should be fairly easy to integrate with the v-input styles: #13554 |
https://eager-elion-d7d275.netlify.app/ https://github.com/lukas-tr/vuetify-tiptap-example |
I also need this feature, but the tiptap example doesn't fulfill my needs due to it is not a |
@Shinigami92 Vuetify 3 allows you to use tiptap but with all the v-text-field styles. There isn't a good example currently but you would put an unstyled tiptap inside VField inside VInput. |
@KaelWD Sounds cool. Can you direct us to some example or documentation please ? |
Problem to solve
This can be used to provide users with a quick way to input data without cluttering the ui. You are able to tag notes using
#Important
, make links clickable within text fields and highlight special search terms likeassigned-to:me
in a search inputs.Proposed solution
Example:
The result should look like this example from todoist:
removeMatch should work like this :
There is an example with
<a :href="match[0]">{{match[0]}}</a>
as template:Another example with a list of available values:
For this to work, an additional method
getItems
has to be provided. The list itself should be similar tov-combobox
.The text was updated successfully, but these errors were encountered: