Skip to content

[Question] How to create box with dynamically aranged inner elements? #1153

@Made-in-Slovakia

Description

@Made-in-Slovakia

I am building an application with tview as UI. So far I have no problems understanding the tutorials, but I do not know how to make UI using tviews to achieve the following desired effect.

UI has root element (grid), which has one main element in the middle (width is 100% window width) where it renders the main content of the application. Content consists of several smaller boxes with data, each with a fixed height and width, but boxes are not the same size. I would like to achieve that these nested elements/boxes are placed in rows according to how much of them can fit on each row, depending on how the user resizes the window.

This is common effect in many modern UI frameworks. Is it possible to achieve something similar in tview? Or is there any extension that can achieve this?

Thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions