layoutoptions

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 represents the state of the layout options form

func NewModel

func NewModel() Model

NewModel creates a new layout options model

func (Model) Done

func (m Model) Done() bool

Done returns whether the form is done

func (Model) GetFirstDayOfWeek

func (m Model) GetFirstDayOfWeek() time.Weekday

GetFirstDayOfWeek returns the selected first day of week

func (Model) GetJustify

func (m Model) GetJustify() string

GetJustify returns the selected justification

func (Model) GetShowComments

func (m Model) GetShowComments() bool

GetShowComments returns whether to show comments

func (Model) GetShowWeekNumbers

func (m Model) GetShowWeekNumbers() bool

GetShowWeekNumbers returns whether to show week numbers

func (Model) GetShowWeekends

func (m Model) GetShowWeekends() bool

GetShowWeekends returns whether to show weekends

func (Model) GetUseShortDayNames

func (m Model) GetUseShortDayNames() bool

GetUseShortDayNames returns whether to use short day names

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles user input and updates the model

func (Model) View

func (m Model) View() string

View renders the UI

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL