The easiest way to go is to add the elements in OnAfterRender:

1
2
3
4
5
6
7
8
9
10
11
12
13
return! (
    Formlet.OfElement (fun () ->
        OL [Attr.Class "jumbotron"]
        |>! OnAfterRender (fun ol ->
            async {
                let! resultFromServer = Server.getFloatList inputList
                resultFromServer
                |> List.map (fun text -> LI [Text (string text)])
                |> List.iter ol.Append
            }
            |> Async.Start
        )
    ) |> Enhance.WithFormContainer
By on 8/14/2015 3:30 AM ()

Great, Thanks. And thanks for the tip of using the List.itter function as well. I am a newbie at F# so I am very thankful for all the help I can get.

By on 8/14/2015 4:11 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper