-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding QTab support With Stipple Routing Support #47
Comments
cool I'll discuss the best possible approach with Adrian and follow will follow up on this |
got it! |
Thanks @TheCedarPrince - this is not trivial as the UDM version of quasar does not support Vue Router. We'll check if we can add it or if there is some other router/routing option. |
Oh I didn't realize that...
In terms of routing, I really do not care about the Vue Router but would be happy to take advantage of the Stipple/Genie routing provided by the GenieFramework. I realize I am a bit out of my depth here but just seeing if these ideas are at all feasible. |
@TheCedarPrince have you tried using |
I'm not sure about this |
Hey @AbhimanyuAryan , |
Ok let me create a MWP |
You can also use using Stipple, StippleUI
@reactive! mutable struct ButtonModel <: ReactiveModel
press_btn::R{Bool} = false
end
function handlers(button_model)
on(button_model.press_btn) do press_btn
press_btn || return
@info "pressed"
button_model.press_btn[] = false
end
button_model
end
function ui(button_model)
page(
button_model,
title = "Button Components",
class = "q-pa-md q-gutter-sm",
[
btn("On Left", color = "primary", icon = "mail", @click("press_btn = true")),
btn("Go to Hello World", color = "red", type = "a", href = "hello", icon = "map", iconright = "send")
]
)
end
route("/") do
init(ButtonModel) |> handlers |> ui |> html
end
route("/hello") do
"Hello World"
end
up() use property |
There is a function onbutton(button_model.press_btn) do
@info "pressed"
end |
Thanks @hhaensel much cleaner |
Currently, I had a conversation with @AbhimanyuAryan about adding QTab support.
I had started work on this in PR #44 but it had to reverted as QTab support is tricky as it relies on the Vue Router.
In that PR, Abhi said we could do something like this:
However, I have no idea how to do this so I am turning it over to you Abhi to add additional thoughts here.
I opened a PR #46 to add in code ideas for our discussion.
The text was updated successfully, but these errors were encountered: