Documentation
¶
Index ¶
- Constants
- type Config
- type CustomField
- type CustomizableField
- type DataExporter
- func (e DataExporter) ExportToCSV(filename string) error
- func (e DataExporter) ExportToExcel(filename string) error
- func (e DataExporter) ExportToJSON(filename string) error
- func (e DataExporter) ExportToMarkdown(filename string) error
- func (e DataExporter) ExportToPDF(filename string) error
- func (e DataExporter) ExportToXML(filename string) error
- func (e DataExporter) ExportToYAML(filename string) error
- type Exporter
- type Field
- type FormConfig
- type FormField
- type FormFields
- type InputField
- func (f InputField) ErrorMessage() string
- func (f InputField) MaxLength() int
- func (f InputField) MinLength() int
- func (f InputField) Placeholder() string
- func (f InputField) Required() bool
- func (f InputField) Type() string
- func (f InputField) ValidationRules() []ValidationRule
- func (f InputField) Validator() func(string) error
- func (f InputField) Value() string
- type LayoutOptions
- type Styles
- type TableDataHandler
- type ValidationRule
Constants ¶
View Source
const ( DOWN = "down" TAB = "tab" SHIFTTAB = "shift+tab" ENTER = "enter" UP = "up" CTRLR = "ctrl+r" CTRLC = "ctrl+c" ESC = "esc" PASSWORD = "password" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Title string
Fields FormFields
}
func (Config) GetFields ¶
func (c Config) GetFields() FormFields
type CustomField ¶
type CustomField struct {
InputField
Lbl string
DVal string
Grp string
Lay LayoutOptions
Sty Styles
}
func (CustomField) DefaultValue ¶
func (f CustomField) DefaultValue() string
func (CustomField) Group ¶
func (f CustomField) Group() string
func (CustomField) Label ¶
func (f CustomField) Label() string
func (CustomField) LayoutOptions ¶
func (f CustomField) LayoutOptions() LayoutOptions
func (CustomField) Styles ¶
func (f CustomField) Styles() Styles
type CustomizableField ¶
type DataExporter ¶
type DataExporter struct{}
func (DataExporter) ExportToCSV ¶
func (e DataExporter) ExportToCSV(filename string) error
func (DataExporter) ExportToExcel ¶
func (e DataExporter) ExportToExcel(filename string) error
func (DataExporter) ExportToJSON ¶
func (e DataExporter) ExportToJSON(filename string) error
func (DataExporter) ExportToMarkdown ¶
func (e DataExporter) ExportToMarkdown(filename string) error
func (DataExporter) ExportToPDF ¶
func (e DataExporter) ExportToPDF(filename string) error
func (DataExporter) ExportToXML ¶
func (e DataExporter) ExportToXML(filename string) error
func (DataExporter) ExportToYAML ¶
func (e DataExporter) ExportToYAML(filename string) error
type Field ¶
type Field interface {
Type() string
Value() string
Placeholder() string
ValidationRules() []ValidationRule
}
type FormConfig ¶
type FormFields ¶
Collection of form fields
func (FormFields) InputType ¶
func (f FormFields) InputType() string
func (FormFields) Inputs ¶
func (f FormFields) Inputs() []FormField
type InputField ¶
type InputField struct {
Ph string
Tp string
Val string
Req bool
Min int
Max int
Err string
Vld func(string) error
}
func (InputField) ErrorMessage ¶
func (f InputField) ErrorMessage() string
func (InputField) MaxLength ¶
func (f InputField) MaxLength() int
func (InputField) MinLength ¶
func (f InputField) MinLength() int
func (InputField) Placeholder ¶
func (f InputField) Placeholder() string
func (InputField) Required ¶
func (f InputField) Required() bool
func (InputField) Type ¶
func (f InputField) Type() string
func (InputField) ValidationRules ¶
func (f InputField) ValidationRules() []ValidationRule
func (InputField) Validator ¶
func (f InputField) Validator() func(string) error
func (InputField) Value ¶
func (f InputField) Value() string
type LayoutOptions ¶
type TableDataHandler ¶
type ValidationRule ¶
Click to show internal directories.
Click to hide internal directories.