You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MultiSelect is a component that allows users to select multiple items from a list. It supports selection of items both individually and in a range (by clicking and dragging to create a selection box).
Features include:
Single selection by clicking on an item.
Multiple selection by holding down the 'CTRL' key (or 'CMD' on Mac) and clicking on multiple items.
Range selection by holding down the 'Shift' key and clicking two items; all items in between will be selected.
Range selection can also be done by clicking and dragging to create a selection box around the items.
Deselecting an individually selected item within a range can be done by holding down the 'CTRL' key (or 'CMD' on Mac) and clicking on the item.
All selections can be cleared by pressing the 'Escape' key.
Moreover, it also creates a context menu using the ContextMenu component that displays when the user clicks on an item with right button mouse click. The menu options for the context menu are customizable. For example, the parent component could choose to delete the selected items.
The MultiSelect component has a styled container with relative position, no user select, and padding. Each item in the MultiSelect component is styled with a conditional background color and border, changes when selected. If the user is dragging to select, a selection box is displayed, styled with dashed border, semi-transparent background color, absolute position, and not interacts with the pointer.
The text was updated successfully, but these errors were encountered:
Ensure hold to touch does not deselect exiting selection
Use theme-friendly colors for selection
Allow for both vertical and horizontal layouts
Support item reordering
Support ability to drag and drop selection
Customize about of space between items
Document requirements around what happens when dragging outside of container
Fix bug where you can select different things and the ContextMenu stays open
Make sure it's possible for items to have their own ContextMenu rather than only supporting the MultiSelect single insance ContextMenu - perhaps differentiate between single and multi selection
Add arrow keys to change selection items - when multi rows, account for arrangement to allow all four directions
Add additional stories and use cases - list, file browser
The
MultiSelect
is a component that allows users to select multiple items from a list. It supports selection of items both individually and in a range (by clicking and dragging to create a selection box).Features include:
Moreover, it also creates a context menu using the
ContextMenu
component that displays when the user clicks on an item with right button mouse click. The menu options for the context menu are customizable. For example, the parent component could choose to delete the selected items.The
MultiSelect
component has a styled container with relative position, no user select, and padding. Each item in the MultiSelect component is styled with a conditional background color and border, changes when selected. If the user is dragging to select, a selection box is displayed, styled with dashed border, semi-transparent background color, absolute position, and not interacts with the pointer.The text was updated successfully, but these errors were encountered: