Documentation ¶
Index ¶
- Constants
- type Dropdown
- type Field
- func NewCheckbox(id, label string, checked bool) Field
- func NewCheckboxs(id, label string, value []interface{}, options ...Option) Field
- func NewEmailField(id, label, value string) Field
- func NewHiddenField(id string, value interface{}) Field
- func NewPasswordField(id, label, helper string) Field
- func NewRadios(id, label string, value interface{}, options ...Option) Field
- func NewSelect(id, label string, value interface{}, options ...Option) Field
- func NewSortSelect(id, label string, value, min, max int) Field
- func NewTextField(id, label, value string) Field
- func NewTextarea(id, label, value string, rows int) Field
- type Form
- type Link
- type Option
- type Pagination
Constants ¶
View Source
const ( // TypeRadios radios TypeRadios = "radios" // TypeCheckboxs checkboxs TypeCheckboxs = "checkboxs" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field map[string]interface{}
Field field
func NewCheckbox ¶
NewCheckbox new checkbox field
func NewCheckboxs ¶
NewCheckboxs new checkboxs field
func NewEmailField ¶
NewEmailField new email field
func NewHiddenField ¶
NewHiddenField new hidden field
func NewPasswordField ¶
NewPasswordField new password field
func NewSortSelect ¶
NewSortSelect new sort select
func NewTextarea ¶
NewTextarea new textarea field
type Pagination ¶
type Pagination struct { Href string `json:"href"` Page int64 `json:"page"` Size int64 `json:"size"` Total int64 `json:"total"` Count int64 `json:"count"` Items []interface{} `json:"items"` Ids []int64 `json:"ids"` }
Pagination pagination
func NewPagination ¶
func NewPagination(r *http.Request, total int64) *Pagination
NewPagination new pagination
Click to show internal directories.
Click to hide internal directories.