Documentation ¶
Index ¶
- type Model
- func (m *Model) FirstItem() int
- func (m *Model) GetCurrItem() int
- func (m *Model) LastItem() int
- func (m *Model) NextItem() int
- func (m *Model) PrevItem() int
- func (m *Model) ResetCurrItem()
- func (m *Model) SetDimensions(dimensions constants.Dimensions)
- func (m *Model) SetNumItems(numItems int)
- func (m *Model) SyncViewPort(content string)
- func (m *Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { ListItemHeight int NumItems int ItemTypeLabel string // contains filtered or unexported fields }
func NewModel ¶
func NewModel(dimensions constants.Dimensions, itemTypeLabel string, numItems, listItemHeight int) Model
func (*Model) GetCurrItem ¶
func (*Model) ResetCurrItem ¶
func (m *Model) ResetCurrItem()
func (*Model) SetDimensions ¶
func (m *Model) SetDimensions(dimensions constants.Dimensions)
func (*Model) SetNumItems ¶
func (*Model) SyncViewPort ¶
Click to show internal directories.
Click to hide internal directories.