lipgloss
lipgloss copied to clipboard
feature request: support Grid layout
as title
Hi! Would you mind elaborating so we can understand exactly what you mean?
sorry for late reply, what i mean is i need a UI grid layout frame (which looks like css)
https://github.com/gizak/termui have already impl this feature
exapme looks like this link
grid := ui.NewGrid()
termWidth, termHeight := ui.TerminalDimensions()
grid.SetRect(0, 0, termWidth, termHeight)
grid.Set(
ui.NewRow(1.0/2,
ui.NewCol(1.0/2, slg),
ui.NewCol(1.0/2, lc),
),
ui.NewRow(1.0/2,
ui.NewCol(1.0/4, ls),
ui.NewCol(1.0/4,
ui.NewRow(.9/3, gs[0]),
ui.NewRow(.9/3, gs[1]),
ui.NewRow(1.2/3, gs[2]),
),
ui.NewCol(1.0/2, p),
),
)
ui.Render(grid)