Skip to content

WebSharper UI 4.5

Compare
Choose a tag to compare
@Tarmil Tarmil released this 09 Aug 14:05
· 357 commits to master since this release

This is a major release for WebSharper UI 4. See the associated WebSharper release.

Features and breaking changes

  • #183: [F#] In order to minimize the number of upcasts needed in user code, the following functions now return values of type Doc instead of Elt:

    • Functions in the module WebSharper.UI.Html, such as div, span, etc.
    • Functions in the module WebSharper.UI.Html.Tags, such as option, object, etc.
    • Functions in the module WebSharper.UI.Html.SvgElements, such as g, rect, etc.
    • Functions in the module WebSharper.UI.Client.Doc, such as Input, Button, etc.

    For users who do need values of type Elt, the following were added:

    • A new module WebSharper.UI.Html.Elt, containing Elt-returning equivalents to the functions in WebSharper.UI.Html and WebSharper.UI.Html.Tags.
    • A new module WebSharper.UI.Html.SvgElements.Elt, containing Elt-returning equivalents to the functions in WebSharper.UI.Html.SvgElements.
    • A new module WebSharper.UI.Client.Elt, containing Elt-returning equivalents to the functions in WebSharper.UI.Client.Doc.

Fixes

  • #112: Pass the correct Dom.Element as argument to an .OnAfterRender() called on a template's .Elt().
  • #185: Fix setting the class of an SVG element.