Skip to content

Instantly share code, notes, and snippets.

@t0yv0
Created January 21, 2011 13:25
module Client =
open IntelliFactory.WebSharper.Html
[<JavaScript>]
let Button label =
Button [Text label]
|>! OnClick (fun button _ ->
button.Text <- "CLICKED")
type ButtonControl(label: string) =
inherit Web.Control()
new () = new ButtonControl("unlabelled")
[<JavaScript>]
override this.Body = Button label :> _
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment