Replies: 1 comment 1 reply
-
Yes, this is the general approach for that: core.NewToolbar(b).Maker(func(p *tree.Plan) {
tree.Add(p, func(w *core.Button) {
w.SetText("Button on the left")
})
tree.Add(p, func(w *core.Button) {
w.SetText("Another button on the left")
})
tree.Add(p, func(w *core.Stretch) {}) // <- add this
tree.Add(p, func(w *core.Text) {
w.SetText("This text should be on the right")
})
}) You can try that and see if it works for your use case. There are some layout issues here that we are planning to fix soon, so if those make it not work for you, we can accelerate fixing those. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the idiomatic way of controlling the placing widgets in the toolbar?
Specifically, I would like some widgets to be placed on the left and some widgets to be placed on the right side of the toolbar.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions