Header menu logo Sutil

BindOperators Module

Operators to help with bindings

Functions and values

Function or value Description

a >/ b

Full Usage: a >/ b

Parameters:
Returns: SutilElement

An alias for Bind.el

a : IObservable<'a>
b : 'a -> SutilElement
Returns: SutilElement
Example

Consider this binding:

     Bind.el( model .> errorMessage, fun msg -> Html.div [ text msg ] )
This operator would allow this to be rewritten as
     model .> errorMessage >/ fun msg -> Html.div [ text msg ]
val msg: 'a
In fact, for this particular message, you can code golf this into
     model .> errorMessage >/ Html.div

Type something to start searching.