Documentation
¶
Index ¶
- type Model
- func (m *Model) Apply(msg UpdateMsg)
- func (m *Model) CleanUp()
- func (m *Model) Close()
- func (m *Model) GetContent() string
- func (m *Model) GetContentHeight() int
- func (m *Model) GetContentWidth() int
- func (m *Model) GetLocation() string
- func (m *Model) IsLoading() bool
- func (m *Model) IsOpen() bool
- func (m *Model) Open()
- func (m *Model) RenderText(text string) string
- func (m *Model) RenderTextWithDimension(text string, height int, width int) string
- func (m *Model) RenderWithPath(itemPath string, previewWidth int, previewHeight int, fullModelWidth int) (string, string)
- func (m *Model) SetEmptyWithDimensions(width int, height int)
- func (m *Model) SetLoading()
- func (m *Model) SetLocation(location string)
- func (m *Model) SetOpen(open bool)
- func (m *Model) ToggleOpen()
- type UpdateMsg
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 (*Model) GetContent ¶
func (*Model) GetContentHeight ¶ added in v1.5.0
func (*Model) GetContentWidth ¶ added in v1.5.0
func (*Model) GetLocation ¶
func (*Model) RenderText ¶
Only use this when height and width are synced with filemodel's expectations
func (*Model) RenderTextWithDimension ¶ added in v1.5.0
func (*Model) RenderWithPath ¶
func (m *Model) RenderWithPath( itemPath string, previewWidth int, previewHeight int, fullModelWidth int, ) (string, string)
RenderWithPath returns (render, rawTransmit). rawTransmit is non-empty for Kitty images (transmit data) or when clearing Kitty images (delete-all). It must be sent via tea.Raw().
func (*Model) SetEmptyWithDimensions ¶ added in v1.5.0
func (*Model) SetLoading ¶ added in v1.5.0
func (m *Model) SetLoading()
func (*Model) SetLocation ¶
func (*Model) ToggleOpen ¶
func (m *Model) ToggleOpen()
type UpdateMsg ¶ added in v1.5.0
type UpdateMsg struct {
// contains filtered or unexported fields
}
func NewUpdateMsg ¶ added in v1.5.0
func (UpdateMsg) GetContentHeight ¶ added in v1.5.0
func (UpdateMsg) GetContentWidth ¶ added in v1.5.0
func (UpdateMsg) GetLocation ¶ added in v1.5.0
func (UpdateMsg) GetRawTransmit ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.