DomHelpers Module
Utilities to help with browser DOM API
Types and nested modules
Type/Module | Description |
Functions and values
Function or value | Description |
Full Usage:
anyof events target fn
Parameters:
string list
target : EventTarget
fn : Event -> Unit
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
interval handler delayMs
Parameters:
unit -> unit
delayMs : int
Returns: unit -> unit
|
|
|
|
|
|
Full Usage:
listen event e fn
Parameters:
string
e : EventTarget
fn : Event -> unit
Returns: unit -> unit
|
|
|
|
|
|
Full Usage:
raf f
Parameters:
float -> unit
Returns: float
|
|
Full Usage:
rafu f
Parameters:
unit -> unit
|
|
|
|
|
|
|
|
|
|
Full Usage:
timeout handler delayMs
Parameters:
unit -> unit
delayMs : int
Returns: unit -> unit
|
|
Full Usage:
viewportHeight ()
Parameters:
unit
Returns: float
|
|
Full Usage:
viewportWidth ()
Parameters:
unit
Returns: float
|
Type extensions
Type extension | Description |
|
Extended Type:
|
|
Extended Type:
|
|
Extended Type:
|
|
Extended Type:
|
Full Usage:
this.toSeq ()
Parameters:
unit
Returns: 'T seq
|
|
|