Last active
March 29, 2017 14:20
-
-
Save fponticelli/7c447330be3bac19435585c17cfe6c7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
button("click me") | |
.large() | |
.danger() | |
.disabled() | |
button([ | |
Content("click me"), | |
Large, | |
Danger, | |
Disabled | |
]) | |
button | |
.with(Content("click me")), | |
.with(Large), | |
.with(Danger), | |
.with(Disabled) | |
button("click me") | |
.size(Large) | |
.intent(Danger) | |
.disabled(true) | |
button | |
.size(Large) | |
.intent(Danger) | |
.disabled(true) | |
.content("click me") | |
<button size="large" intent="danger" disabled="true">click me</button> | |
dom(' | |
<button size=Large intent=Danger disabled=true> | |
click me | |
</button> | |
') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input | |
.type(Text) | |
.value("some string") | |
.input(e -> trace(e)); | |
div | |
.cls("one") | |
.cls("other") | |
.cls.when(true, "conditional") | |
.cls.unless(false, () -> "unlikely") // ??? or use magic lazy conversion? | |
.children(span.text("here we go")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment