Documentation
¶
Index ¶
- type Input
- type InputWrapper
- func (w *InputWrapper) Blur()
- func (w *InputWrapper) Focus() tea.Cmd
- func (w *InputWrapper) SetCharLimit(charLimit int)
- func (*InputWrapper) SetHeight(_ int)
- func (w *InputWrapper) SetReadOnly(readOnly bool)
- func (w *InputWrapper) SetValue(value string)
- func (w *InputWrapper) SetWidth(width int)
- func (w *InputWrapper) Update(msg tea.Msg) (Input, tea.Cmd)
- func (w *InputWrapper) Value() string
- func (w *InputWrapper) View() string
- type InputWrapperStyle
- type TextAreaWrapper
- func (w *TextAreaWrapper) Blur()
- func (w *TextAreaWrapper) Focus() tea.Cmd
- func (w *TextAreaWrapper) SetCharLimit(charLimit int)
- func (w *TextAreaWrapper) SetHeight(height int)
- func (w *TextAreaWrapper) SetReadOnly(readOnly bool)
- func (w *TextAreaWrapper) SetValue(value string)
- func (w *TextAreaWrapper) SetWidth(width int)
- func (w *TextAreaWrapper) Update(msg tea.Msg) (Input, tea.Cmd)
- func (w *TextAreaWrapper) Value() string
- func (w *TextAreaWrapper) View() string
- type TextAreaWrapperOption
- type TextAreaWrapperStyle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputWrapper ¶
InputWrapper wraps textinput.Model to implement the Input interface
func NewInputWrapper ¶
func NewInputWrapper( placeHolder string, style InputWrapperStyle, ) *InputWrapper
func (*InputWrapper) Blur ¶
func (w *InputWrapper) Blur()
func (*InputWrapper) Focus ¶
func (w *InputWrapper) Focus() tea.Cmd
func (*InputWrapper) SetCharLimit ¶
func (w *InputWrapper) SetCharLimit(charLimit int)
func (*InputWrapper) SetHeight ¶
func (*InputWrapper) SetHeight(_ int)
func (*InputWrapper) SetReadOnly ¶
func (w *InputWrapper) SetReadOnly(readOnly bool)
func (*InputWrapper) SetValue ¶
func (w *InputWrapper) SetValue(value string)
func (*InputWrapper) SetWidth ¶
func (w *InputWrapper) SetWidth(width int)
func (*InputWrapper) Value ¶
func (w *InputWrapper) Value() string
func (*InputWrapper) View ¶
func (w *InputWrapper) View() string
type InputWrapperStyle ¶
type TextAreaWrapper ¶
TextAreaWrapper wraps textarea.Model to implement the Input interface
func NewTextAreaWrapper ¶
func NewTextAreaWrapper( height int, placeHolder string, style TextAreaWrapperStyle, options ...TextAreaWrapperOption, ) *TextAreaWrapper
func (*TextAreaWrapper) Focus ¶
func (w *TextAreaWrapper) Focus() tea.Cmd
Focus implements the Input interface
func (*TextAreaWrapper) SetCharLimit ¶
func (w *TextAreaWrapper) SetCharLimit(charLimit int)
func (*TextAreaWrapper) SetHeight ¶
func (w *TextAreaWrapper) SetHeight(height int)
SetHeight implements the Input interface
func (*TextAreaWrapper) SetReadOnly ¶
func (w *TextAreaWrapper) SetReadOnly(readOnly bool)
SetReadOnly implements the Input interface
func (*TextAreaWrapper) SetValue ¶
func (w *TextAreaWrapper) SetValue(value string)
SetValue implements the Input interface
func (*TextAreaWrapper) SetWidth ¶
func (w *TextAreaWrapper) SetWidth(width int)
SetWidth implements the Input interface
func (*TextAreaWrapper) Value ¶
func (w *TextAreaWrapper) Value() string
Value implements the Input interface
func (*TextAreaWrapper) View ¶
func (w *TextAreaWrapper) View() string
View implements the Input interface
type TextAreaWrapperOption ¶
type TextAreaWrapperOption func(*TextAreaWrapper) error
func WithMarkdown ¶
func WithMarkdown(markdownWordWrapWidth int) TextAreaWrapperOption
type TextAreaWrapperStyle ¶
Click to show internal directories.
Click to hide internal directories.