feat(tui): configurable keybinds and mouse scroll
This commit is contained in:
@@ -11,9 +11,7 @@ type Container interface {
|
||||
tea.ViewModel
|
||||
Sizeable
|
||||
Focusable
|
||||
MaxWidth() int
|
||||
Alignment() lipgloss.Position
|
||||
GetPosition() (x, y int)
|
||||
Alignable
|
||||
}
|
||||
|
||||
type container struct {
|
||||
@@ -185,6 +183,11 @@ func (c *container) GetPosition() (x, y int) {
|
||||
return c.x, c.y
|
||||
}
|
||||
|
||||
func (c *container) SetPosition(x, y int) {
|
||||
c.x = x
|
||||
c.y = y
|
||||
}
|
||||
|
||||
type ContainerOption func(*container)
|
||||
|
||||
func NewContainer(content tea.ViewModel, options ...ContainerOption) Container {
|
||||
|
||||
Reference in New Issue
Block a user