Ctrl + K
Get StartedStylesCoreCompsCDK
Carousel
Drawer
List Navigation
Outline
Pan View
Selection
Sliding Item
Virtual Scroll
Wysiwyg

Selection

Overview

The selection directive allows users to select items within a list. Each item using the axSelectionItem directive has an isActive property that turns true when clicked, indicating it's selected. The directive also includes a multiple property, which, when set to true, enables multiple item selections and returns an array of selected items. Additionally, the disable property can be set to true to prevent user interaction with the list, effectively disabling selection. The onSelectionChanged event is triggered whenever the selected item(s) change, providing a way to respond to selection updates. To use this directive, the parent element must include the axSelectionGroup directive, and each child item must use the axSelectionItem directive, with the key property being required for proper functionality. This setup enables flexible and dynamic item selection with support for both single and multiple selections.

Usage

Basic Example (HTML)

Copyright ©2017-2025 ACoreX Labs Inc.

On this page