Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, tutorials, and more.

Handling selectable events

In addition to the standard configurable options of the selectable API, there are also a series of event callback options that can be used to specify functions that are executed at specific points during a select interaction. These options are listed in the following table:

Option

Triggered when

selecte

The select interaction ends and each element added to the selection triggers the callback.

selecting

Each selected element triggers the callback during the select interaction.

start

A select interaction begins.

stop

A selection operation ends.

unselected

Any elements that are part of the selectable, but are not selected during the interaction will fire this callback.

unselecting

Unselected

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.