Header menu logo Fabulous.AST

SingleChildBuilder<'marker, 'childMarker> Type

A Computation Expression builder accepting a single child widget.

Record fields

Record Field Description

Attr

Full Usage: Attr

Field type: WidgetAttributeDefinition
Field type: WidgetAttributeDefinition

Attributes

Full Usage: Attributes

Field type: AttributesBundle
Field type: AttributesBundle

Key

Full Usage: Key

Field type: WidgetKey
Field type: WidgetKey

Constructors

Constructor Description

SingleChildBuilder(key, attr)

Full Usage: SingleChildBuilder(key, attr)

Parameters:
Returns: SingleChildBuilder<'marker, 'childMarker>
key : WidgetKey
attr : WidgetAttributeDefinition
Returns: SingleChildBuilder<'marker, 'childMarker>

SingleChildBuilder(key, attr, attributes)

Full Usage: SingleChildBuilder(key, attr, attributes)

Parameters:
Returns: SingleChildBuilder<'marker, 'childMarker>
key : WidgetKey
attr : WidgetAttributeDefinition
attributes : AttributesBundle
Returns: SingleChildBuilder<'marker, 'childMarker>

Instance members

Instance member Description

this.AddScalar

Full Usage: this.AddScalar

Parameters:
Returns: SingleChildBuilder<'marker, 'childMarker>
Modifiers: inline
attr : ScalarAttribute
Returns: SingleChildBuilder<'marker, 'childMarker>

this.Combine

Full Usage: this.Combine

Parameters:
Returns: SingleChildContent
Modifiers: inline

Combines only the Zero state with the first child. Subsequent children won't be allowed thanks to the Unit initial state.

() : unit
b : SingleChildContent
Returns: SingleChildContent

this.Delay

Full Usage: this.Delay

Parameters:
Returns: SingleChildContent
Modifiers: inline
f : unit -> SingleChildContent
Returns: SingleChildContent

this.Run

Full Usage: this.Run

Parameters:
Returns: WidgetBuilder<'marker>
Modifiers: inline

Creates the current widget using the accumulated attributes and the child.

c : SingleChildContent
Returns: WidgetBuilder<'marker>

this.Yield

Full Usage: this.Yield

Parameters:
Returns: SingleChildContent
Modifiers: inline
child : WidgetBuilder<'childMarker>
Returns: SingleChildContent

this.Zero

Full Usage: this.Zero

Modifiers: inline

Starts with a state equals to unit so we can force yield to only be used once.

Type something to start searching.