Closed Ethosa closed 1 month ago
var isReadonly = remember true appRoutes "app": "/": tInput(value = "hello world", readonly = isReadonly) tButton: "switch" @click: isReadonly.set(not isReadonly)
HappyX will render it as
<input value="hello world">
and if isReadonly wil be true
isReadonly
true
<input value="hello world" readonly>
Attributes can be named with -:
-
tButton(data-happyx-ok = "Hello from HappyX"): "Hello world"
will be rendered as
<button data-happyx-ok="Hello from HappyX">Hello world</button>
HappyX will render it as
and if
isReadonly
wil betrue
Attributes can be named with
-
:will be rendered as