Comments (9)
Ah right, multiselect. Yeah, I'll give that a go. The only downside is that we don't have colored avatars there (which the current Mail impl with jQuery UI's autocomplete has).
We should be able to achieve that with https://vue-multiselect.js.org/#sub-custom-option-template
from nextcloud-vue.
$ rg "autocomplete\(" .
core/js/sharedialogview.js
125: this.$el.find('.shareWithField').autocomplete("search");
435: .autocomplete("option", "autoFocus", true);
565: .autocomplete('search', $(e.target).val());
602: .autocomplete('search', $(e.target).val());
632: $shareWithField.autocomplete('close');
633: $shareWithField.autocomplete('disable');
658: $shareWithField.autocomplete('enable');
671: $shareWithField.autocomplete('enable');
684: $shareWithField.autocomplete('enable');
690: $shareWithField.autocomplete('enable');
702: $shareWithField.autocomplete('enable');
761: $shareField.autocomplete({
from nextcloud-vue.
@nextcloud/vue would that make sense for other apps as well or is this too specific?
In calendar there are a couple use-cases:
- autocomplete for sharing dialog
- autocomplete for an event's location (based on Contacts' addresses)
- autocomplete for entering an event's attendees
from nextcloud-vue.
In Contacts we could suggest other contacts on the RELATED field :)
from nextcloud-vue.
Basically you want a dataProvider for the multiselect?
from nextcloud-vue.
Ah right, multiselect. Yeah, I'll give that a go. The only downside is that we don't have colored avatars there (which the current Mail impl with jQuery UI's autocomplete has).
from nextcloud-vue.
@ChristophWurst Yes, we should always use vue-multiselect. The features are crazy available and it works really great! This is actually an issue on server, we need to use only one solution, this is a nightmare otherwise :)
Currently we have select2, multiselect (jquery lib), jquery autocomplete and now also vue-multiselect! 😱
from nextcloud-vue.
Let's just use the multiselect component then 🚀
from nextcloud-vue.
@ChristophWurst But we can also create a utility to suggest proper data providers from our lib?
from nextcloud-vue.
Related Issues (20)
- [NcDialog] Cannot read properties of undefined (reading 'mounted') HOT 4
- NcCheckboxRadioSwitch: Allow external label HOT 3
- [NcActions] doesn't fully support changing type during open state
- [NcAppSidebar] add `open` state HOT 3
- `npm link @nextcloud/vue` hangs - can't follow setup steps further HOT 2
- Update docs about build:module
- Link/mention picker should not pop up when typing inside a word HOT 2
- [NcRichContenteditable] Pressing ESC not only closes the link picker but also unfocuses the input HOT 4
- Three dots menu button on task details sidebar always looks selected
- Check widget errors HOT 1
- NcAppNavigation in mobile state blocks interacting with dialogs HOT 4
- User status broken on safari HOT 2
- NcDialog, NcReferenceWidget generate Vue warnings for the vueuse/core methods HOT 4
- NcReferenceWidget generates warnings on destroy
- Mention picker is shown when a mention-chip is in front of it
- NcCounterBubble just keeps counting up HOT 2
- [NcSelect] has a visible border on hidden input in disabled state from server styles
- RichText causes errors on WebKit | Invalid regex
- [NcAppSidebar] `v-show` doesn't work on sidebar anymore because of Fragment HOT 3
- Suggestion community: elaborate on sparse documentation HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextcloud-vue.