Documentation
¶
Index ¶
- type Model
- func (m *Model) AdjustSegment(delta int)
- func (m *Model) Blur()
- func (m *Model) CursorPosition() int
- func (m *Model) Focus() tea.Cmd
- func (m *Model) FocusFirstSegment()
- func (m *Model) Focused() bool
- func (m Model) Init() tea.Cmd
- func (m *Model) LocalValue() string
- func (m *Model) SetTime(t time.Time)
- func (m *Model) Time() time.Time
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m *Model) Value() string
- func (m *Model) ValueUtc() 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 {
// contains filtered or unexported fields
}
Model is the model for the datetime component
func (*Model) AdjustSegment ¶
AdjustSegment increments or decrements the currently focused date-time segment.
func (*Model) CursorPosition ¶
CursorPosition returns the cursor position in the editable timestamp.
func (*Model) FocusFirstSegment ¶
func (m *Model) FocusFirstSegment()
FocusFirstSegment moves editing to the first date-time segment.
func (*Model) LocalValue ¶
LocalValue returns the editable local timestamp string.
Click to show internal directories.
Click to hide internal directories.