[<Sealed>]
type MyControl() =
inherit Web.Control()
let mutable value = "?"
member this.MyParameter with get x = value and set x = value <- x
[<JavaScript>]
override this.Body = Div [Text value] :> _
And then:
<MyControl MyParameter="foo" />
Hope it helps!
--A
--
Kind Regards,
Anton Tayanovskyy
WebSharper™ - type-safe JavaScript in F#
http://intellifactory.com