Documentation
¶
Index ¶
- type BubbleField
- type Label
- type TextField
- func (f *TextField) Blur()
- func (f *TextField) ClearError()
- func (f *TextField) Focus()
- func (f *TextField) Init() tea.Cmd
- func (f *TextField) SetError(err error)
- func (f *TextField) SetValue(val string)
- func (f *TextField) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (f *TextField) Value() string
- func (f *TextField) View() string
- type TextFieldOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BubbleField ¶
type BubbleField struct {
// contains filtered or unexported fields
}
func (*BubbleField) Init ¶
func (f *BubbleField) Init() tea.Cmd
func (*BubbleField) SetError ¶
func (f *BubbleField) SetError(err error)
func (*BubbleField) Value ¶
func (f *BubbleField) Value() string
func (*BubbleField) View ¶
func (f *BubbleField) View() string
type TextField ¶
type TextField struct {
// contains filtered or unexported fields
}
func NewTextField ¶
func NewTextField(label string, opts ...TextFieldOption) TextField
func (*TextField) ClearError ¶
func (f *TextField) ClearError()
type TextFieldOption ¶
type TextFieldOption func(*TextField)
func WithErrorStyle ¶
func WithErrorStyle(style lipgloss.Style) TextFieldOption
Option to set the error style
func WithInitialValue ¶
func WithInitialValue(val string) TextFieldOption
Option to set the initial value
func WithPlaceholder ¶
func WithPlaceholder(placeholder string) TextFieldOption
Option to set the placeholder
func WithStyle ¶
func WithStyle(style lipgloss.Style) TextFieldOption
Option to set the style of the text field
Click to show internal directories.
Click to hide internal directories.