Bromine Class
Item Index
Methods
- fireEvent static
- fireEvent static
- fireEventWithDelay static
- fireEventWithDelay static
- fireKeyboardEvent static
- fireKeyboardEvent static
- fireMouseEvent static
- fireMouseEvent static
Methods
fireEvent
(
static
-
el
-
type
Dispatches a DOM event on a given element
Parameters:
-
el
Element -
type
String
fireEvent
(
static
-
el
-
type
Dispatches a DOM event on a given element
Parameters:
-
el
Element -
type
String
fireEventWithDelay
(
static
-
el
-
type
-
callback
-
[delay=500]
Dispatches a DOM event on an element, then dispatches a callback after given delay
fireEventWithDelay
(
static
-
el
-
type
-
callback
-
[delay=500]
Dispatches a DOM event on an element, then dispatches a callback after given delay
fireKeyboardEvent
(
static
-
el
-
type
-
params
Fires a keyboard event on element
Additional parameters can be:
ctrl, alt, shift, meta, key, charCode
fireKeyboardEvent
(
static
-
el
-
type
-
params
Fires a keyboard event on element
Additional parameters can be:
ctrl, alt, shift, meta, key, charCode
fireMouseEvent
(
static
-
el
-
type
-
params
Fires a mouse event on element
Additional parameters can be:
x, y, details, button, ctrl, alt, shift, meta, relatedTarget
if no x/y supplied, will use element position