Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michaël Vanbrabandt 863 posts 3343 karma points c-trib
    Apr 09, 2018 @ 07:34
    Michaël Vanbrabandt
    0

    Disable multipicker in UserPicker overlay

    Hi all,

    the overlay UserPicker doesn't have the option to disable multiPicker like other pickers.

    I am working on a package and need to select one user, for now I solved it by taking the first result:

       submit: function (model) {
                 // Get first selected user
                 vm.model.note.assignedTo = usersBuilder.convert(model.selection[0]);
                 vm.overlay.show = false;
                 vm.overlay = null;
       }
    

    But would like to have a nicer and cleaner way by disabling the multiPicker.

    Also created an issue on the tracker:

    http://issues.umbraco.org/issue/U4-11189

    Source code folder of the picker:

    https://github.com/umbraco/Umbraco-CMS/tree/dev-v7/src/Umbraco.Web.UI.Client/src/views/common/overlays/userpicker

    /Michaël

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies