Documentation
¶
Index ¶
- type Model
- func (m *Model) ActiveBlock() interfaces.EditorBlock
- func (m *Model) Align() enums.Alignment
- func (m *Model) Children() []interfaces.EditorBlock
- func (m *Model) FocusAt(x, y int, width int, _ int) int
- func (m *Model) Handle(msg tea.KeyMsg, ctx types.BlockContext) types.BlockUpdateResult
- func (m *Model) Height() int
- func (m *Model) Len() int
- func (m *Model) MergeFrom(other interfaces.EditorBlock) int
- func (m *Model) Render(ctx contexts.BlockRenderContext) string
- func (m *Model) ReplaceActiveChild(b interfaces.EditorBlock)
- func (m *Model) SetAlign(a enums.Alignment)
- func (m *Model) SetText(s string)
- func (m *Model) StyleName() string
- func (m *Model) Text() string
- func (m *Model) Value(ctx contexts.BlockValueContext) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewWithChildren ¶
func NewWithChildren(children []interfaces.EditorBlock) *Model
func (*Model) ActiveBlock ¶
func (m *Model) ActiveBlock() interfaces.EditorBlock
func (*Model) Children ¶
func (m *Model) Children() []interfaces.EditorBlock
func (*Model) Handle ¶
func (m *Model) Handle(msg tea.KeyMsg, ctx types.BlockContext) types.BlockUpdateResult
func (*Model) MergeFrom ¶
func (m *Model) MergeFrom(other interfaces.EditorBlock) int
func (*Model) Render ¶
func (m *Model) Render(ctx contexts.BlockRenderContext) string
func (*Model) ReplaceActiveChild ¶
func (m *Model) ReplaceActiveChild(b interfaces.EditorBlock)
func (*Model) Value ¶
func (m *Model) Value(ctx contexts.BlockValueContext) string
Source Files
¶
- model.go
- mouse.go
- update.go
- view.go
Click to show internal directories.
Click to hide internal directories.