Browse Source

web: Remove the boolean parameter from hidden() to align with #780 (#783)

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden
pull/802/head
Philip Wedemann 3 years ago committed by GitHub
parent
commit
766e5950de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt

2
web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt

@ -21,7 +21,7 @@ class AttrsBuilder<TElement : Element> : EventsListenerBuilder() {
fun classes(vararg classes: String) = prop(setClassList, classes) fun classes(vararg classes: String) = prop(setClassList, classes)
fun id(value: String) = attr(ID, value) fun id(value: String) = attr(ID, value)
fun hidden(value: Boolean) = attr(HIDDEN, value.toString()) fun hidden() = attr(HIDDEN, true.toString())
fun title(value: String) = attr(TITLE, value) fun title(value: String) = attr(TITLE, value)
fun dir(value: DirType) = attr(DIR, value.dirStr) fun dir(value: DirType) = attr(DIR, value.dirStr)
fun draggable(value: Draggable) = attr(DRAGGABLE, value.str) fun draggable(value: Draggable) = attr(DRAGGABLE, value.str)

Loading…
Cancel
Save