Header menu logo Sutil

SutilElement Type

Sutil's element type. This is an abstraction of DOM elements, attributes, events, etc. The type itself is a function that maps BuildContext to a SutilEffect, wrapped in a private record to isolate users from implementation details as much as possible:

 type SutilElement = private { Builder: BuildContext -> SutilEffect }
type SutilElement = private { Builder: (obj -> obj) }
Examples of SutilElements:
  • Html.div
  • Attr.className
  • Ev.onClick
  • Core.disposeOnUnmount
  • Core.host

Static members

Static member Description

SutilElement.Define(name, children, builder)

Full Usage: SutilElement.Define(name, children, builder)

Parameters:
Returns: SutilElement
name : string
children : SutilElement seq
builder : BuildContext -> Node
Returns: SutilElement

SutilElement.Define(name, builder)

Full Usage: SutilElement.Define(name, builder)

Parameters:
Returns: SutilElement
name : string
builder : BuildContext -> unit
Returns: SutilElement

SutilElement.Define(name, builder)

Full Usage: SutilElement.Define(name, builder)

Parameters:
Returns: SutilElement
name : string
builder : BuildContext -> SutilEffect
Returns: SutilElement

SutilElement.Define(builder)

Full Usage: SutilElement.Define(builder)

Parameters:
Returns: SutilElement
builder : BuildContext -> SutilEffect
Returns: SutilElement

Type something to start searching.