Gjallarhorn.Bindable


Component

Namespace: Gjallarhorn.Bindable

Routines for constructing and working with Components

Functions and values

Function or valueDescription
create bindings
Signature: bindings:(Dispatch<'Nav> -> BindingSource -> ISignal<'Model> -> IObservable<'Message> option) list -> IComponent<'Model,'Nav,'Message>
Type parameters: 'Model, 'Nav, 'Message

Create a component from a "new API" style of binding list

fromExplicit bindings
Signature: bindings:(Dispatch<'Nav> -> BindingSource -> ISignal<'Model> -> IObservable<'Message> list) -> IComponent<'Model,'Nav,'Message>
Type parameters: 'Model, 'Nav, 'Message

Create a component from explicit binding generators

suppressNavigation childComponent
Signature: childComponent:IComponent<'Model,'NavChild,'Message> -> IComponent<'Model,'NavParent,'Message>
Type parameters: 'Model, 'NavChild, 'NavParent, 'Message

Wrap a component with a suppressed navigation dispatcher

toSelfUpdating update childComponent
Signature: update:('Message -> 'Model -> 'Model) -> childComponent:IComponent<'Model,'Nav,'Message> -> IComponent<'Model,'Nav,'Model>
Type parameters: 'Model, 'Nav, 'Message

Convert a component to a self updating component

withMappedMessages mapper childComponent
Signature: mapper:('MessageChild -> 'MessageParent) -> childComponent:IComponent<'Model,'Nav,'MessageChild> -> IComponent<'Model,'Nav,'MessageParent>
Type parameters: 'Model, 'Nav, 'MessageChild, 'MessageParent

Wrap a component with a message mapper

withMappedNavigation (...)
Signature: mapper:('NavChild -> 'NavParent option) -> childComponent:IComponent<'Model,'NavChild,'Message> -> IComponent<'Model,'NavParent,'Message>
Type parameters: 'Model, 'NavChild, 'NavParent, 'Message

Wrap a component with a navigation dispatch mapper

withSubscription subscription comp
Signature: subscription:('?8043 -> '?8044 -> Async<'?8043 option>) -> comp:IComponent<'?8044,'?8045,'?8043> -> IComponent<'?8044,'?8045,'?8043>
Type parameters: '?8043, '?8044, '?8045

Add a subscription to a component

Fork me on GitHub