Closed hahoyer closed 3 years ago
For the gui
module, it is like this:
{type = "tabbed-pane", children = {
{type = "tab-and-content", tab = {type = "tab", caption = "Foo"}, content = {type = "flow", children = whatever}}
}}
For the gui-beta
module it is like this:
{type = "tabbed-pane", tabs = {
{tab = {type = "tab", caption = "Foo"}, content = {type = "flow", children = "whatever"}}
}}
I highly recommend using gui-beta
. Sometime soon I'll get around to writing documentation for it so people know that it exists.
Thank you, that helped a lot. Would you mind including this example somewhere in the doc? As for gui-beta, how do I use that without the doc? It seems that it is not done just by replacing the require-statement.
Right now you have to read the source code to figure it out. gui.build()
is similar, except for the tabs
subtable as mentioned earlier. There is also an actions
table that replaces the handlers
subtable, and save_as
is replaced by ref
.
The way that the event handling works is completely different as well. I will take some time today to write some documentation.
How to use tabs using flib? Haven't found any docu or examples. Can someone help me?