Documentation
¶
Index ¶
- type Field
- type FieldType
- type SaveFieldMsg
- type Section
- type SelectFieldCmp
- type SettingsCmp
- func (m *SettingsCmp) ActiveSection() *Section
- func (m SettingsCmp) Init() tea.Cmd
- func (m *SettingsCmp) Sections() []Section
- func (m *SettingsCmp) SetActiveField(sectionTitle, fieldKey string)
- func (m *SettingsCmp) SetSections(sections []Section)
- func (m *SettingsCmp) SetSize(width, height int)
- func (m SettingsCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m SettingsCmp) View() string
- type TextFieldCmp
- type ToggleFieldCmp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
Label string
Key string
Value string
Type FieldType
Options []string
Masked bool
ReadOnly bool
Disabled bool
}
func (Field) DisplayValue ¶
func (*Field) SetBoolValue ¶
type SaveFieldMsg ¶
type Section ¶
func (*Section) ActiveField ¶
type SelectFieldCmp ¶
type SelectFieldCmp struct {
// contains filtered or unexported fields
}
func NewSelectFieldCmp ¶
func NewSelectFieldCmp(field Field, width int) SelectFieldCmp
func (*SelectFieldCmp) SetWidth ¶
func (c *SelectFieldCmp) SetWidth(width int)
func (SelectFieldCmp) Value ¶
func (c SelectFieldCmp) Value() string
func (SelectFieldCmp) View ¶
func (c SelectFieldCmp) View() string
type SettingsCmp ¶
type SettingsCmp struct {
// contains filtered or unexported fields
}
func NewSettingsCmp ¶
func NewSettingsCmp() SettingsCmp
func (*SettingsCmp) ActiveSection ¶
func (m *SettingsCmp) ActiveSection() *Section
func (SettingsCmp) Init ¶
func (m SettingsCmp) Init() tea.Cmd
func (*SettingsCmp) Sections ¶
func (m *SettingsCmp) Sections() []Section
func (*SettingsCmp) SetActiveField ¶
func (m *SettingsCmp) SetActiveField(sectionTitle, fieldKey string)
func (*SettingsCmp) SetSections ¶
func (m *SettingsCmp) SetSections(sections []Section)
func (*SettingsCmp) SetSize ¶
func (m *SettingsCmp) SetSize(width, height int)
func (SettingsCmp) View ¶
func (m SettingsCmp) View() string
type TextFieldCmp ¶
type TextFieldCmp struct {
// contains filtered or unexported fields
}
func NewTextFieldCmp ¶
func NewTextFieldCmp(field Field, width int) TextFieldCmp
func (*TextFieldCmp) SetWidth ¶
func (c *TextFieldCmp) SetWidth(width int)
func (TextFieldCmp) Value ¶
func (c TextFieldCmp) Value() string
func (TextFieldCmp) View ¶
func (c TextFieldCmp) View() string
type ToggleFieldCmp ¶
type ToggleFieldCmp struct {
// contains filtered or unexported fields
}
func NewToggleFieldCmp ¶
func NewToggleFieldCmp(field Field) ToggleFieldCmp
func (*ToggleFieldCmp) SetWidth ¶
func (c *ToggleFieldCmp) SetWidth(width int)
func (ToggleFieldCmp) Value ¶
func (c ToggleFieldCmp) Value() string
func (ToggleFieldCmp) View ¶
func (c ToggleFieldCmp) View() string
Click to show internal directories.
Click to hide internal directories.