On Div "Event"

key option type example notes
enable boolean true / false
mode string "bounce"
"bubble"
"repulse"
selectors string
array
a single or an array of DOM CSS selectors replaces the old el and elementId property
type string "circle"
"rectangle"
The div shape type

Hierarchy

  • DivEvent

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

enable: boolean

The div event handler enabling mode

mode: SingleOrMultiple<string>

Div mode values described in DivMode, an array of these values is also valid.

selectors: SingleOrMultiple<string>
type: "circle" | DivType | "rectangle"

Accessors

  • get el(): SingleOrMultiple<string>
  • The element id to detect the event

    Deprecated

    this property is obsolete, please use the new selectors

    Returns SingleOrMultiple<string>

  • set el(value: SingleOrMultiple<string>): void
  • The element id to detect the event

    Deprecated

    this property is obsolete, please use the new selectors

    Parameters

    Returns void

Methods