update
This commit is contained in:
parent
9877b0d451
commit
a044319056
|
|
@ -1 +0,0 @@
|
|||
Subproject commit f95d68fc99bdd0baddf98c597fbf770a0e2bb28c
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
using GenieFramework
|
||||
|
||||
@genietools
|
||||
|
||||
|
||||
@in my_button = false
|
||||
@in text = "Some text"
|
||||
@out function1 = jsfunction"""() => console.log("A")"""
|
||||
|
||||
@handlers begin
|
||||
@onchange text begin
|
||||
println(text)
|
||||
end
|
||||
|
||||
@onchange my_button begin
|
||||
println("pressed")
|
||||
end
|
||||
end
|
||||
|
||||
function ui()
|
||||
c = card([
|
||||
card_section("This is a section", class="bg-primary text-white")
|
||||
separator()
|
||||
card_section("RR")
|
||||
card_section("{{ text }}")
|
||||
])
|
||||
rv = row([
|
||||
c
|
||||
btn("A button", @click("my_button = !my_button"))
|
||||
btn("A button", @click("function1"))
|
||||
textfield("What is your name?", :text, placeholder="Type some text")
|
||||
]; class="q-gutter-sm")
|
||||
println(rv |> string)
|
||||
return rv
|
||||
end
|
||||
|
||||
@page("/", ui)
|
||||
|
||||
Server.isrunning() || Server.up()
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit feca90734fc35a6f81c994e72efe0857a6c6b3a3
|
||||
Loading…
Reference in New Issue
Block a user