AllenDang / giu

Cross platform rapid GUI framework for golang based on Dear ImGui.
MIT License
2.37k stars 135 forks source link

[Feature Request] Allow adding tabs dynamically #659

Closed enty8080 closed 1 year ago

enty8080 commented 1 year ago

Related problem

No response

Your request

In the demo provided, it is possible to add tab to tabs (Examples -> Tabs). But demo is written in C++ and I actually can't understand how to implement this functionality using Go.

P.S. Documentations does not contain any useful information unfortunately.

Alternative solution

No response

Additional context

No response

gucio321 commented 1 year ago

@enty8080 did you find solution?

enty8080 commented 1 year ago

@gucio321 Yes. Just create an array with tabs and append to it every time you want a new tab. Do not forget to unpack this array - TabBar().TabItems(yourArray...)