Documentation ¶
Index ¶
- type Error
- type Flex
- func (F *Flex) AddButton(button FormButton, fixedSize, proportion int)
- func (F *Flex) AddItem(item FormItem, fixedSize, proportion int)
- func (F *Flex) GetButton(name string) FormButton
- func (F *Flex) GetButtons() []FormButton
- func (F *Flex) GetItem(name string) FormItem
- func (F *Flex) GetItems() []FormItem
- func (F *Flex) GetValues() (values map[string]interface{})
- func (F *Flex) Name() string
- func (F *Flex) SetFinishedFunction(handler func(key tcell.Key))
- func (F *Flex) SetValues(values map[string]interface{})
- type Form
- type FormBase
- type FormButton
- type FormError
- type FormItem
- type RequiredError
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flex ¶
func (*Flex) AddButton ¶
func (F *Flex) AddButton(button FormButton, fixedSize, proportion int)
func (*Flex) GetButton ¶
func (F *Flex) GetButton(name string) FormButton
func (*Flex) GetButtons ¶
func (F *Flex) GetButtons() []FormButton
func (*Flex) SetFinishedFunction ¶
func (F *Flex) SetFinishedFunction(handler func(key tcell.Key))
type Form ¶
type Form interface { tview.Primitive Name() string GetValues() (values map[string]interface{}) SetValues(values map[string]interface{}) AddItem(name string, item FormItem, taborder, proportion int) GetItem(name string) FormItem GetItems(name string) []FormItem AddButton(name string, button FormButton, taborder, proportion int) GetButton(name string) FormButton GetButtons(name string) []FormButton }
type FormButton ¶
type RequiredError ¶
type RequiredError struct {
*Error
}
func NewRequiredError ¶
func NewRequiredError(field string) *RequiredError
type ValidationError ¶
type ValidationError struct {
*Error
}
func NewValidationError ¶
func NewValidationError(field, validationMessage string, value interface{}) *ValidationError
Click to show internal directories.
Click to hide internal directories.