dotnet-websharper / ui

A reactive UI library for WebSharper.
https://websharper-samples.github.io/ui/
Apache License 2.0
77 stars 22 forks source link

Add new signature to boolean attributes #221

Closed btamas2000 closed 3 years ago

btamas2000 commented 3 years ago

Extending the issue https://github.com/dotnet-websharper/ui/issues/217 Attributes to change: https://meiert.com/en/blog/boolean-attributes-of-html/

Idea for usage:

let bvar = Var.Create true
let bview = bvar.View

Doc.Button "Should be disabled" [attr.DisabledBool bview] (fun () -> ())