WebSharper.UI 4.2.1
This is the first stable release of WebSharper.UI 4.2. See the associated WebSharper release
Improvements
- #157 Add
Attr.ClassPred
andAttr.DynamicClassPred
for adding CSS classes conditionally.ClassPred
also supports the.V
syntax:Attr.ClassPred "hidden" (currentPage.V = "home")
. - #153 Add
View.WithInit
andWithInitOption
.
View.WithInit init view
is equivalent toview
, except that ifview
is in a waiting state, its initial value isinit
instead.
Similarly,View.WithInitOption view
is equivalent toView.Map Some view
, except that ifview
is in a waiting state, its initial value isNone
instead.