CoreElements Module
The core SutilElement
s required for building DOM, setting attributes, parsing HTML, managing resources etc.
Types
Type | Description |
Functions and values
Function or value | Description |
|
|
|
|
|
|
|
|
|
Dispose all given items when the parent
|
|
|
Full Usage:
elns ns tag xs
Parameters:
string
tag : string
xs : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
A collection of
Examplehttps://sutil.dev/#documentation-html |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
inject elements element
Parameters:
SutilElement seq
element : SutilElement
Returns: SutilElement
|
|
Full Usage:
keyedEl tag key init update
Parameters:
string
key : string
init : SutilElement seq
update : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
listenToResize dispatch
Parameters:
HTMLElement -> unit
Returns: SutilElement
|
|
|
An empty element. This could be considered the
|
Full Usage:
on event fn options
Parameters:
string
fn : Event -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onClick fn options
Parameters:
Event -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onCustomEvent event fn options
Parameters:
string
fn : CustomEvent<'T> -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onElementReady fn options
Parameters:
Event -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onHide fn options
Parameters:
Event -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onInput fn options
Parameters:
InputEvent -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onKeyDown fn options
Parameters:
KeyboardEvent -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onKeyboard event fn options
Parameters:
string
fn : KeyboardEvent -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onMount fn options
Parameters:
Event -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onMouse event fn options
Parameters:
string
fn : MouseEvent -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onMouseMove fn options
Parameters:
MouseEvent -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onShow fn options
Parameters:
Event -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
onUnmount fn options
Parameters:
Event -> unit
options : EventModifier list
Returns: SutilElement
|
|
Full Usage:
postProcess f view
Parameters:
SutilEffect -> SutilEffect
view : SutilElement
Returns: SutilElement
|
|
Full Usage:
postProcessElements f view
Parameters:
HTMLElement -> unit
view : SutilElement
Returns: SutilElement
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
subscribe source handler
Parameters:
IObservable<'T>
handler : BuildContext -> 'T -> unit
Returns: SutilElement
|
|
|
|
|
|
|
|
|
|
|
|
|