Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormField ¶
type FormField struct { Name string FieldName string FieldLabel string FieldPlaceholder string FieldType FormFieldType FieldValidationState ValidationStateType FieldValidationFeedbackMessage string FieldValue string FieldListItems []base.FormListProps FieldValidationType []ValidationType }
func (*FormField) ValidateField ¶
type FormFieldType ¶
type FormFieldValidation ¶
type FormFieldValidation struct { IsRequired bool ValidationState ValidationStateType }
type IFormController ¶
type IPageProps ¶
type IPageProps interface { GetBreadcrumbs() []*breadcrumbitem.BreadcrumbItemProps GetTitle() string }
func NewPageProps ¶
func NewPageProps( title string, currentPageName string, componentsNavItems []*navitem.NavItemProps, componentsNavItemsSidebar []navitem.NavItemProps, breadcrumbItems []*breadcrumbitem.BreadcrumbItemProps, ) IPageProps
type InputType ¶
type InputType string
const BooleanType InputType = "boolean"
const ColorType InputType = "color"
const DatalistType InputType = "datalist"
const EmailType InputType = "email"
const FileType InputType = "file"
const HiddenType InputType = "hidden"
const NumberType InputType = "number"
const PasswordType InputType = "password"
const PlainTextType InputType = "plaintext"
const TextType InputType = "text"
const TextareaType InputType = "textarea"
type PageProps ¶
type PageProps struct { Title string CurrentPageName string BreadcrumbItems []*breadcrumbitem.BreadcrumbItemProps }
func (PageProps) GetBreadcrumbs ¶
func (pp PageProps) GetBreadcrumbs() []*breadcrumbitem.BreadcrumbItemProps
func (PageProps) GetNavItems ¶
func (pp PageProps) GetNavItems(currentPageName string) []*navitem.NavItemProps
type ValidationStateType ¶
type ValidationStateType string
const FieldIsInvalidValidationStatusType ValidationStateType = "is-invalid"
const FieldIsValidValidationStatusType ValidationStateType = "is-valid"
type ValidationType ¶
type ValidationType string
const FieldEmptyIsInvalid ValidationType = "empty-field-invalid"
const FieldRegexMatchIsInvalid ValidationType = "regex-field-invalid"
Click to show internal directories.
Click to hide internal directories.