Genie Discord forum
![Author Avatar](https://cdn.discordapp.com/avatars/334615981471039490/83c53a698e23536ccf12e9bd5d127a07.png?size=512)
I am unable to get the 1st row and it's only showing one row despite declaring two in the UI code....code is shown below and problem shown in pic:
using GenieFramework, Genie.Router, Genie.Renderer.Html
using .Stipple, .StippleUI
using CSV
@genietools
@app begin
@in ID=IDinput
@in Name=Nameinput
end
function ui()
row([
cell(class = "col-md-12", [
textfield(class = "q-my-md", "Student ID", :IDinput)
])
textfield(class = "q-my-md", "Student Name", :Nameinput)
])
row([
cell(class = "st-module", [
btn(class="q-my-md", "Enter", color = "primary", @click("granted =! granted"))
])
btn(class="q-my-md", "Save", color = "primary", @click("granted =! granted"))
])
end
@page("/", ui)
up()
![](https://cdn.discordapp.com/attachments/1167801918563823666/1167801918756753490/image.png?ex=65b4f6ca&is=65a281ca&hm=99cf180e5d181625dec7d1ce23815a5cb223d0113d0789287d5d5633e069ea10&)
![Author Avatar](https://cdn.discordapp.com/avatars/743412727464067154/bc30abeb49653e9978c0f7c90f4486a8.png?size=512)
The ui function must return a string or a list of strings. Try enclosing it all in a list like
[
row(...),
row(...)
]
![Author Avatar](https://cdn.discordapp.com/avatars/334615981471039490/83c53a698e23536ccf12e9bd5d127a07.png?size=512)
Also can you show how to position widgets in Stipple UI with an example, when there are two rows declared?