Class ComplementaryClickHelper

A class that mixes multiple BaseClickHelper instances into one. Useful if you want a widget to be both clickable by a pointer and by the enter key

Hierarchy (view full)

Constructors

Properties

clickHelpers: BaseClickHelper[]

The BaseClickHelper instances being mixed

refs: number = 0

Accessors

Methods

  • Add a ClickHelper to the list of complementing ClickHelpers. Note that duplicates are allowed.

    The intended way of using this is to, for example, create a ClickHelper, use it normally, and add it when the widget is attached (handleAttachment), and do the opposite when the widget is detached (handleDetachment).

    Parameters

    Returns void

  • Remove a ClickHelper from the list of complementing ClickHelpers.

    Depending on your use-case, you might also want to reset the ClickHelper after removing it from this list.

    Parameters

    Returns boolean