Documentation
¶
Index ¶
- Constants
- Variables
- func DeleteModalExample(c echo.Context) error
- func ErrorHandler(err error, c echo.Context)
- func GetAboutPage(c echo.Context) error
- func GetActiveSearchExample(c echo.Context) error
- func GetCascadingSelectExample(c echo.Context) error
- func GetComponentAnchors(c echo.Context) error
- func GetComponentPage(c echo.Context) error
- func GetComponentSearch(c echo.Context) error
- func GetDatePicker(c echo.Context) error
- func GetDatePickerMonthPicker(c echo.Context) error
- func GetDatePickerYearPicker(c echo.Context) error
- func GetGettingStartedPage(c echo.Context) error
- func GetIndexPage(c echo.Context) error
- func GetInfiniteScrollExample(c echo.Context) error
- func GetInfiniteScrollExampleRows(c echo.Context) error
- func GetLazyLoadExample(c echo.Context) error
- func GetPaginationExamplePage(c echo.Context) error
- func GetPricingExample(c echo.Context) error
- func GetPrivacyPolicyPage(c echo.Context) error
- func GetTermsOfServicePage(c echo.Context) error
- func GetTypesPage(c echo.Context) error
- func NotFound(c echo.Context) error
- func PostCombobox(c echo.Context) error
- func PostComboboxSubmit(c echo.Context) error
- func PostDatePickerSelectDay(c echo.Context) error
- func PostValidateString(c echo.Context) error
- type ErrorToast
Constants ¶
View Source
const ( ItemsPerPage = 10 PagesPerSide = 3 )
BasicPaginationExample
Variables ¶
View Source
var StringValidations = map[string]func(data string) string{ "notempty": func(data string) string { data = strings.TrimSpace(data) if data == "" { return "must not be empty" } return "" }, "email": func(data string) string { data = strings.TrimSpace(data) if !emailRegexp.Match([]byte(data)) { return "must be valid" } return "" }, "hasupper": func(data string) string { for _, r := range data { if unicode.IsUpper(r) { return "" } } return "must contain a uppercase letter" }, "haslower": func(data string) string { for _, r := range data { if unicode.IsLower(r) { return "" } } return "must contain a lowercase letter" }, "hasdigit": func(data string) string { for _, r := range data { if unicode.IsNumber(r) { return "" } } return "must contain a number" }, "hasspecial": func(data string) string { chars := `§!"@#£¤$%&/{([=?+\'*<>,;.:-_])}` if strings.ContainsAny(data, chars) { return "" } return fmt.Sprintf("must contain one of %s", chars) }, }
Functions ¶
func DeleteModalExample ¶
func DeleteModalExample(c echo.Context) error
ModalConfirmDelete endpoint to log deleted 'element' and return an empty string to replace the element, i.e. remove it from the DOM
func ErrorHandler ¶
func ErrorHandler(err error, c echo.Context)
func GetAboutPage ¶
func GetAboutPage(c echo.Context) error
func GetActiveSearchExample ¶
func GetActiveSearchExample(c echo.Context) error
ActiveSearchExampleTable
func GetCascadingSelectExample ¶
func GetCascadingSelectExample(c echo.Context) error
func GetComponentAnchors ¶
func GetComponentAnchors(c echo.Context) error
func GetComponentPage ¶
func GetComponentPage(c echo.Context) error
func GetComponentSearch ¶
func GetComponentSearch(c echo.Context) error
func GetDatePickerMonthPicker ¶
func GetDatePickerMonthPicker(c echo.Context) error
func GetDatePickerYearPicker ¶
func GetDatePickerYearPicker(c echo.Context) error
func GetGettingStartedPage ¶
func GetGettingStartedPage(c echo.Context) error
func GetIndexPage ¶
func GetIndexPage(c echo.Context) error
func GetInfiniteScrollExample ¶
func GetInfiniteScrollExample(c echo.Context) error
InfiniteScrollTableExample
func GetInfiniteScrollExampleRows ¶
func GetInfiniteScrollExampleRows(c echo.Context) error
func GetPaginationExamplePage ¶
func GetPaginationExamplePage(c echo.Context) error
func GetPrivacyPolicyPage ¶
func GetPrivacyPolicyPage(c echo.Context) error
func GetTermsOfServicePage ¶
func GetTermsOfServicePage(c echo.Context) error
func GetTypesPage ¶
func GetTypesPage(c echo.Context) error
func PostComboboxSubmit ¶
func PostComboboxSubmit(c echo.Context) error
func PostDatePickerSelectDay ¶
func PostDatePickerSelectDay(c echo.Context) error
func PostValidateString ¶
func PostValidateString(c echo.Context) error
Types ¶
type ErrorToast ¶
func (ErrorToast) Error ¶
func (te ErrorToast) Error() string
Click to show internal directories.
Click to hide internal directories.