SutilHtmlEngine Type
Functions for building DOM elements.
Note that not all members are documented here, only a few specialized augmentations over the class Feliz.HtmlEngine
In theory, every HTML element should be an inherited member of SutilHtmlEngine
, in the form
// Create div with float value as a child text node
member _.div (value: float)
// Create div with float value as a child text node
member _.div (value: int)
// Create div with SutilElement value as a child element
member _.div (value: SutilElement)
// Create div with string value as child text node
member _.div (value: string)
// Create div with multiple child SutilElements.
// Not all SutilElements are DOM elements; they may be attribute-setters, or event-listeners
member _.div (children: seq<SutilElement>)
Multiple items
val float: value: 'T -> float (requires member op_Explicit)
--------------------
type float = System.Double
--------------------
type float<'Measure> = float
val float: value: 'T -> float (requires member op_Explicit)
--------------------
type float = System.Double
--------------------
type float<'Measure> = float
Multiple items
val int: value: 'T -> int (requires member op_Explicit)
--------------------
type int = int32
--------------------
type int<'Measure> = int
val int: value: 'T -> int (requires member op_Explicit)
--------------------
type int = int32
--------------------
type int<'Measure> = int
Multiple items
val string: value: 'T -> string
--------------------
type string = System.String
val string: value: 'T -> string
--------------------
type string = System.String
Multiple items
val seq: sequence: 'T seq -> 'T seq
--------------------
type 'T seq = System.Collections.Generic.IEnumerable<'T>
val seq: sequence: 'T seq -> 'T seq
--------------------
type 'T seq = System.Collections.Generic.IEnumerable<'T>
Example
open Sutil
let view() =
Html.div [
Html.h1 "Hello"
Html.p "world"
]
val view: unit -> 'a
Constructors
Constructor | Description |
|
|
Instance members
Instance member | Description |
Full Usage:
this.ac cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
Full Usage:
this.articlec cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.asidec cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
Full Usage:
this.buttonc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.ddc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
|
Full Usage:
this.divc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.dlc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.dtc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.footerc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
|
|
|
Full Usage:
this.h1c cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
|
Full Usage:
this.h2c cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
|
Full Usage:
this.h3c cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
|
Full Usage:
this.h4c cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
|
Full Usage:
this.h5c cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
|
Full Usage:
this.h6c cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.headerc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.hrc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.ic cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.imgc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.inputc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.labelc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.lic cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.navc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.olc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.parent selector xs
Parameters:
string
xs : SutilElement seq
Returns: SutilElement
|
|
|
|
Full Usage:
this.pc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.sectionc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
|
Full Usage:
this.spanc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.tablec cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.tbodyc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
|
Full Usage:
this.tdc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
|
|
|
|
|
|
Full Usage:
this.theadc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.trc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|
Full Usage:
this.ulc cls children
Parameters:
string
children : SutilElement seq
Returns: SutilElement
|
|