Documentation ¶
Index ¶
- func URL(id string) string
- type AjaxAction
- func (ajax *AjaxAction) BtnAttribute() template.HTML
- func (ajax *AjaxAction) GetCallbacks() context.Node
- func (ajax *AjaxAction) Js() template.JS
- func (ajax *AjaxAction) SetData(data map[string]interface{}) *AjaxAction
- func (ajax *AjaxAction) SetMethod(method string) *AjaxAction
- func (ajax *AjaxAction) SetUrl(url string) *AjaxAction
- func (ajax *AjaxAction) WithAlert(data ...AlertData) *AjaxAction
- type AjaxData
- type AlertData
- type BaseAction
- func (base *BaseAction) BtnAttribute() template.HTML
- func (base *BaseAction) BtnClass() template.HTML
- func (base *BaseAction) ExtContent() template.HTML
- func (base *BaseAction) FooterContent() template.HTML
- func (base *BaseAction) GetCallbacks() context.Node
- func (base *BaseAction) Js() template.JS
- func (base *BaseAction) SetBtnData(data interface{})
- func (base *BaseAction) SetBtnId(btnId string)
- type FieldFilterAction
- type FileUploadAction
- func (file *FileUploadAction) BtnAttribute() template.HTML
- func (file *FileUploadAction) FooterContent() template.HTML
- func (file *FileUploadAction) GetCallbacks() context.Node
- func (file *FileUploadAction) Js() template.JS
- func (file *FileUploadAction) SetMethod(method string) *FileUploadAction
- func (file *FileUploadAction) SetUrl(url string) *FileUploadAction
- type JumpAction
- type JumpOption
- type JumpOptions
- type JumpSelectBoxAction
- type PopUpAction
- func (pop *PopUpAction) BtnAttribute() template.HTML
- func (pop *PopUpAction) FooterContent() template.HTML
- func (pop *PopUpAction) GetCallbacks() context.Node
- func (pop *PopUpAction) Js() template.JS
- func (pop *PopUpAction) SetBtnTitle(title template.HTML) *PopUpAction
- func (pop *PopUpAction) SetData(data map[string]interface{}) *PopUpAction
- func (pop *PopUpAction) SetMethod(method string) *PopUpAction
- func (pop *PopUpAction) SetUrl(url string) *PopUpAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AjaxAction ¶
type AjaxAction struct { BaseAction Url string Method string Data AjaxData Alert bool AlertData AlertData Handlers []context.Handler }
func (*AjaxAction) BtnAttribute ¶
func (ajax *AjaxAction) BtnAttribute() template.HTML
func (*AjaxAction) GetCallbacks ¶
func (ajax *AjaxAction) GetCallbacks() context.Node
func (*AjaxAction) Js ¶
func (ajax *AjaxAction) Js() template.JS
func (*AjaxAction) SetData ¶
func (ajax *AjaxAction) SetData(data map[string]interface{}) *AjaxAction
func (*AjaxAction) SetMethod ¶
func (ajax *AjaxAction) SetMethod(method string) *AjaxAction
func (*AjaxAction) SetUrl ¶
func (ajax *AjaxAction) SetUrl(url string) *AjaxAction
func (*AjaxAction) WithAlert ¶
func (ajax *AjaxAction) WithAlert(data ...AlertData) *AjaxAction
type AlertData ¶
type AlertData struct { Title string `json:"title"` Type string `json:"type"` ShowCancelButton bool `json:"showCancelButton"` ConfirmButtonColor string `json:"confirmButtonColor"` ConfirmButtonText string `json:"confirmButtonText"` CloseOnConfirm bool `json:"closeOnConfirm"` CancelButtonText string `json:"cancelButtonText"` }
type BaseAction ¶
func (*BaseAction) BtnAttribute ¶
func (base *BaseAction) BtnAttribute() template.HTML
func (*BaseAction) BtnClass ¶
func (base *BaseAction) BtnClass() template.HTML
func (*BaseAction) ExtContent ¶
func (base *BaseAction) ExtContent() template.HTML
func (*BaseAction) FooterContent ¶
func (base *BaseAction) FooterContent() template.HTML
func (*BaseAction) GetCallbacks ¶
func (base *BaseAction) GetCallbacks() context.Node
func (*BaseAction) Js ¶
func (base *BaseAction) Js() template.JS
func (*BaseAction) SetBtnData ¶
func (base *BaseAction) SetBtnData(data interface{})
func (*BaseAction) SetBtnId ¶
func (base *BaseAction) SetBtnId(btnId string)
type FieldFilterAction ¶
type FieldFilterAction struct { BaseAction Field string }
func FieldFilter ¶
func FieldFilter(field string) *FieldFilterAction
func (*FieldFilterAction) ExtContent ¶
func (jump *FieldFilterAction) ExtContent() template.HTML
type FileUploadAction ¶
type FileUploadAction struct { BaseAction Url string Method string FileName string Handlers []context.Handler }
func FileUpload ¶
func FileUpload(id string, handler types.Handler) *FileUploadAction
func (*FileUploadAction) BtnAttribute ¶
func (file *FileUploadAction) BtnAttribute() template.HTML
func (*FileUploadAction) FooterContent ¶
func (file *FileUploadAction) FooterContent() template.HTML
func (*FileUploadAction) GetCallbacks ¶
func (file *FileUploadAction) GetCallbacks() context.Node
func (*FileUploadAction) Js ¶
func (file *FileUploadAction) Js() template.JS
func (*FileUploadAction) SetMethod ¶
func (file *FileUploadAction) SetMethod(method string) *FileUploadAction
func (*FileUploadAction) SetUrl ¶
func (file *FileUploadAction) SetUrl(url string) *FileUploadAction
type JumpAction ¶
type JumpAction struct { BaseAction Url string Ext template.HTML NewTabTitle string }
func JumpInNewTab ¶
func JumpInNewTab(url, title string, ext ...template.HTML) *JumpAction
func (*JumpAction) BtnAttribute ¶
func (jump *JumpAction) BtnAttribute() template.HTML
func (*JumpAction) BtnClass ¶
func (jump *JumpAction) BtnClass() template.HTML
func (*JumpAction) ExtContent ¶
func (jump *JumpAction) ExtContent() template.HTML
func (*JumpAction) GetCallbacks ¶
func (jump *JumpAction) GetCallbacks() context.Node
type JumpOption ¶
type JumpOptions ¶
type JumpOptions []JumpOption
type JumpSelectBoxAction ¶
type JumpSelectBoxAction struct { BaseAction Options JumpOptions NewTabTitle string }
func SelectBoxJump ¶
func SelectBoxJump(options JumpOptions) *JumpSelectBoxAction
func (*JumpSelectBoxAction) ExtContent ¶
func (jump *JumpSelectBoxAction) ExtContent() template.HTML
type PopUpAction ¶
type PopUpAction struct { BaseAction Url string Method string Id string Title string BtnTitle template.HTML Data AjaxData Handlers []context.Handler }
func (*PopUpAction) BtnAttribute ¶
func (pop *PopUpAction) BtnAttribute() template.HTML
func (*PopUpAction) FooterContent ¶
func (pop *PopUpAction) FooterContent() template.HTML
func (*PopUpAction) GetCallbacks ¶
func (pop *PopUpAction) GetCallbacks() context.Node
func (*PopUpAction) Js ¶
func (pop *PopUpAction) Js() template.JS
func (*PopUpAction) SetBtnTitle ¶
func (pop *PopUpAction) SetBtnTitle(title template.HTML) *PopUpAction
func (*PopUpAction) SetData ¶
func (pop *PopUpAction) SetData(data map[string]interface{}) *PopUpAction
func (*PopUpAction) SetMethod ¶
func (pop *PopUpAction) SetMethod(method string) *PopUpAction
func (*PopUpAction) SetUrl ¶
func (pop *PopUpAction) SetUrl(url string) *PopUpAction
Click to show internal directories.
Click to hide internal directories.