Skip to content

IgxSelect Specification

Milko Venkov edited this page Dec 13, 2018 · 101 revisions

IgxSelect Specification

Contents

  1. Overview
  2. User and Developer Stories
  3. Test scenarios
  4. ARIA support
  5. Assumptions and Limitations
  6. References

Revision History

Version User Date Notes
0.1 Milko Venkov Dec 12, 2018 Initial Draft

Objectives

The igxSelect provides an input with dropdown list allowing selection of a single item.

User Stories

As an end user, I want to:

  • have an input that allows me to select a single item from a dropdown list
  • be able to easily and quickly navigate through the list of items
  • be able to select and confirm one option from the dropdown list by using my keyboard
  • be able to close the dropdown list without selecting anything
  • see the currently selected item when opening the dropdown list

Developer Stories

As a developer, I want to:

  • get/set the value that is selected
  • bind the control to an array of primitive values (string, number, etc.)
  • bind the control to an array of objects and:
    • be able to specify which property should be used for the text shown in list items
    • be able to specify which property should be used for the value of the list items
  • bind the control to a remote set of data
  • specify a template for the way data should be visualized inside the dropdown list
  • be notified, when the value of the input has changed
  • be notified, when the dropdown list of the input is shown
  • be notified, when the dropdown list of the input is hidden

Automation

  • Input text box is read-only
  • Dropdown list gets displayed when
    • input is pressed
    • dropdown button is pressed
    • down arrow + ALT keys are pressed
    • enter key is pressed when select is active
    • space key is pressed when select is active
  • When opened the dropdown list can be closed by
    • click on an item of the dropdown list
    • pressing up arrow + ALT keys
    • pressing enter key is pressed
    • pressing space key is pressed
    • pressing escape key is pressed
    • click outside the dropdown list
  • When dropdown list is closed and input is active
    • pressing up/down arrow keys should select previous/next selectable item
    • pressing home/end keys should select first/last selectable item
    • typing in the input should select first item matching the typed input
  • While opening the dropdown list, if there is selected item, the text of the selected item should be place exactly above the text of the input
  • While opening the dropdown list, if there is selected item and there is no enough screen space to place selected item over the input's text, dropdown list should be shown above or bellow the input
  • The dropdown list can be closed without selecting anything
  • onOpening/onClosing event is fired on opening/closing the dropdown list
  • onOpened/onClosed event is fired after the dropdown list has been opened/closed
  • Pressing Home key scrolls up to the first non-disabled item of the dropdown list
  • Pressing End key scrolls down to the last non-disabled item of the dropdown list
  • Key navigation through disabled items should skip the disabled items
  • Vertical scrollbar is visible only when the items does not fit inside the dropdown list container
  • Dropdown list appearance can be customized by applying templates
  • When using key navigation to move up and down the items list the current item is focused and movement starts from the last selected item if any or from the first item in the list if no list item is selected
  • onSelectionChange event is triggered when an item is being selected
  • Selected item is highlighted in the dropdown list
  • IgxSelect can be bound to an array of primitive data, array of objects or remote service
  • IgxSelect applies all appropriate classes on initialization
  • The items can be disabled/enabled at runtime
  • The dropdown list should persist selection through scrolling
  • Disabled items cannot be focused
  • Disabled items cannot be selected

Manual

  • The IgxSelect's list shows/hides in a timely manner with a big number of items
  • Focus is changed in a timely manner when navigating via keyboard
  • The user may have more than one IgxSelect controls on the same page.
  • The IgxSelect's list content should not "flicker" when opening
  • the only mode of selection will be single

IgxSelect Issue

Angular Material Select Form Control

ARIA 1.1 Combobox with Listbox Popup Examples

Clone this wiki locally