Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyValue = errors.New("empty input value") ErrInvalidSymbol = errors.New("invalid symbol") )
Functions ¶
func ValidateB64 ¶
Types ¶
type CanceledMsg ¶
type CanceledMsg struct{}
type InvalidMsg ¶
type ValidatedInput ¶
ValidatedInput provides the input with validation
func NewValidatedInput ¶
func NewValidatedInput(validationFn func(string) error, setValidStyleFn, setInvalidStyleFn StyleFn) *ValidatedInput
NewValidatedInput creates new input model
func (*ValidatedInput) Input ¶
func (m *ValidatedInput) Input() *textinput.Model
TextInput provides the access to input model
func (*ValidatedInput) IsValid ¶
func (m *ValidatedInput) IsValid() bool
IsValid indicates if input value is valid
Click to show internal directories.
Click to hide internal directories.