Giter VIP home page Giter VIP logo

Comments (9)

juliushaertl avatar juliushaertl commented on June 19, 2024 2

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.

ChristophWurst avatar ChristophWurst commented on June 19, 2024
$ 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.

georgehrke avatar georgehrke commented on June 19, 2024

@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.

skjnldsv avatar skjnldsv commented on June 19, 2024

In Contacts we could suggest other contacts on the RELATED field :)

from nextcloud-vue.

skjnldsv avatar skjnldsv commented on June 19, 2024

Basically you want a dataProvider for the multiselect?

from nextcloud-vue.

ChristophWurst avatar ChristophWurst commented on June 19, 2024

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.

skjnldsv avatar skjnldsv commented on June 19, 2024

@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.

ChristophWurst avatar ChristophWurst commented on June 19, 2024

Let's just use the multiselect component then 🚀

from nextcloud-vue.

skjnldsv avatar skjnldsv commented on June 19, 2024

@ChristophWurst But we can also create a utility to suggest proper data providers from our lib?

from nextcloud-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.