enterprise icon indicating copy to clipboard operation
enterprise copied to clipboard

Dropdown and Multiselect: Add the ability to have non-selectable messages in dropdowns

Open Sovia opened this issue 4 years ago • 11 comments

Is your feature request related to a problem or use case? Please describe. We are using a paging model for dropdown/multiselects, as there are cases where we are getting thousands of records in the dropdowns. Because of this, we are no longer returning all the possible options with the source call, and would like to give the users a message about how to get more data. Also, when a multiselect has a max selected number configured, we would like to give the users a heads up about that too.

Describe the solution you'd like A way to configure a message to be displayed at the bottom of the dropdown (i.e. "Refine search for more results"), and a message about "x selected (y maximum)" when using multiselect with a max selected configured.

Describe alternatives you've considered Tried to do this with just read only options, but these only update when the source function is called (so the mutliselect message didn't update). Also, if move selected is configured, it would be nice to have this message in that section.

Additional context Multiselect message like: image

Message at the bottom of the dropdown: image

Infor Landmark UI

Sovia avatar Sep 16 '20 15:09 Sovia

And make sure we can set the messages thru ng and angular.

Sovia avatar Sep 16 '20 16:09 Sovia

@tmcconechy I think adding the "3 select (maximum 4)" in the selected section could be an option if maxSelection is enabled and just automatically added by EP. what do you think?

pwpatton avatar Sep 16 '20 16:09 pwpatton

for the "refine search for more options" we'd like to be able to add with something like <li class=readonly>Refine search for more options<li>

pwpatton avatar Sep 16 '20 16:09 pwpatton

Something with the phrasing seems off a bit but we can figure out some labeling settings.

tmcconechy avatar Sep 16 '20 16:09 tmcconechy

Label settings would be great. Maybe for the current and max selected labeling we could chat with the designers.

pwpatton avatar Sep 16 '20 17:09 pwpatton

I think we had talked about not saying anything about maximum allowed unless the user actually hit that number. Assuming the max allowed is a high number, how often would a user encounter that scenario? So, something as simple as "3 selected" should suffice. In the edge case we could say "Maximum reached; 50 selected. Refine search for more options," or "Refine search for more options. Maximum reached; 50 selected."

jamie-norman avatar Sep 16 '20 19:09 jamie-norman

@jamie-norman for landmark a typical limit would be the number of occurs in an array field that stored the multiple selected values. This is unlikely to be more than 10 chars in most cases.

pwpatton avatar Sep 16 '20 19:09 pwpatton

@tmcconechy do you have this scheduled in a sprint?

vonnyw avatar Jan 31 '22 16:01 vonnyw

Im not 100% sure this is something we would want to do as it adds complexity and possibilities for worse accessibility. So not scheduled yet. But i will add it to the next grooming session to discuss further options.. Perhaps we can come up with a more usable way of conveying this.

tmcconechy avatar Jan 31 '22 17:01 tmcconechy

Is the use case for both the 3 of 4 selected and the label on the bottom or do you just need one of these if so we could add.

  1. An option for a label at the bottom of the selected area
  2. An option to make any item non/selectable (not disabled and no checkbox)

tmcconechy avatar Feb 23 '22 17:02 tmcconechy

Tthe design/ ux team didn't really like the proposal as it adds accessibility and usability issues. So its not prioritized until we can find a design that seems good to go.

Especially the message on the bottom that you can never see. But adding the count someplace else and refining the All text might make sense.

So might have to bring this through design.

tmcconechy avatar Jun 02 '22 20:06 tmcconechy