WebSharper UI 4.5
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 ofElt
:- Functions in the module
WebSharper.UI.Html
, such asdiv
,span
, etc. - Functions in the module
WebSharper.UI.Html.Tags
, such asoption
,object
, etc. - Functions in the module
WebSharper.UI.Html.SvgElements
, such asg
,rect
, etc. - Functions in the module
WebSharper.UI.Client.Doc
, such asInput
,Button
, etc.
For users who do need values of type
Elt
, the following were added:- A new module
WebSharper.UI.Html.Elt
, containingElt
-returning equivalents to the functions inWebSharper.UI.Html
andWebSharper.UI.Html.Tags
. - A new module
WebSharper.UI.Html.SvgElements.Elt
, containingElt
-returning equivalents to the functions inWebSharper.UI.Html.SvgElements
. - A new module
WebSharper.UI.Client.Elt
, containingElt
-returning equivalents to the functions inWebSharper.UI.Client.Doc
.
- Functions in the module