Documentation ¶
Index ¶
- func InitOperationHandlerSetter(p context.NodeProcessor)
- func URL(id string) string
- type AjaxAction
- func (ajax *AjaxAction) AddData(data map[string]interface{}) *AjaxAction
- func (ajax *AjaxAction) BtnAttribute() template.HTML
- func (ajax *AjaxAction) ChangeHTMLWhenSuccess(identify string, text ...string) *AjaxAction
- func (ajax *AjaxAction) GetCallbacks() context.Node
- func (ajax *AjaxAction) Js() template.JS
- func (ajax *AjaxAction) SetData(data map[string]interface{}) *AjaxAction
- func (ajax *AjaxAction) SetErrorJS(errorJS template.JS) *AjaxAction
- func (ajax *AjaxAction) SetEvent(event Event) *AjaxAction
- func (ajax *AjaxAction) SetMethod(method string) *AjaxAction
- func (ajax *AjaxAction) SetParameterJS(parameterJS template.JS) *AjaxAction
- func (ajax *AjaxAction) SetSuccessJS(successJS template.JS) *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(ctx *context.Context) template.HTML
- func (base *BaseAction) FooterContent(ctx *context.Context) 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 Event
- type FieldFilterAction
- type FileUploadAction
- func (file *FileUploadAction) BtnAttribute() template.HTML
- func (file *FileUploadAction) FooterContent(ctx *context.Context) 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 GetCtxForm
- type GetForm
- type IframeData
- type JumpAction
- type JumpOption
- type JumpOptions
- type JumpSelectBoxAction
- type PopUpAction
- func PopUp(id, title string, handler types.Handler) *PopUpAction
- func PopUpWithCtxForm(data PopUpData, fn GetCtxForm, url string) *PopUpAction
- func PopUpWithForm(data PopUpData, fn GetForm, url string) *PopUpAction
- func PopUpWithIframe(id, title string, data IframeData, width, height string) *PopUpAction
- func (pop *PopUpAction) BtnAttribute() template.HTML
- func (pop *PopUpAction) FooterContent(ctx *context.Context) 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) SetDraggable() *PopUpAction
- func (pop *PopUpAction) SetEvent(event Event) *PopUpAction
- func (pop *PopUpAction) SetHeight(height string) *PopUpAction
- func (pop *PopUpAction) SetMethod(method string) *PopUpAction
- func (pop *PopUpAction) SetParameterJS(parameterJS template.JS) *PopUpAction
- func (pop *PopUpAction) SetUrl(url string) *PopUpAction
- func (pop *PopUpAction) SetWidth(width string) *PopUpAction
- type PopUpData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitOperationHandlerSetter ¶ added in v1.2.14
func InitOperationHandlerSetter(p context.NodeProcessor)
Types ¶
type AjaxAction ¶ added in v1.2.0
type AjaxAction struct { BaseAction Url string Method string Data AjaxData Alert bool AlertData AlertData SuccessJS template.JS ErrorJS template.JS ParameterJS template.JS Event Event Handlers []context.Handler }
func (*AjaxAction) AddData ¶ added in v1.2.16
func (ajax *AjaxAction) AddData(data map[string]interface{}) *AjaxAction
func (*AjaxAction) BtnAttribute ¶ added in v1.2.0
func (ajax *AjaxAction) BtnAttribute() template.HTML
func (*AjaxAction) ChangeHTMLWhenSuccess ¶ added in v1.2.16
func (ajax *AjaxAction) ChangeHTMLWhenSuccess(identify string, text ...string) *AjaxAction
func (*AjaxAction) GetCallbacks ¶ added in v1.2.0
func (ajax *AjaxAction) GetCallbacks() context.Node
func (*AjaxAction) Js ¶ added in v1.2.0
func (ajax *AjaxAction) Js() template.JS
func (*AjaxAction) SetData ¶ added in v1.2.0
func (ajax *AjaxAction) SetData(data map[string]interface{}) *AjaxAction
func (*AjaxAction) SetErrorJS ¶ added in v1.2.14
func (ajax *AjaxAction) SetErrorJS(errorJS template.JS) *AjaxAction
func (*AjaxAction) SetEvent ¶ added in v1.2.16
func (ajax *AjaxAction) SetEvent(event Event) *AjaxAction
func (*AjaxAction) SetMethod ¶ added in v1.2.0
func (ajax *AjaxAction) SetMethod(method string) *AjaxAction
func (*AjaxAction) SetParameterJS ¶ added in v1.2.14
func (ajax *AjaxAction) SetParameterJS(parameterJS template.JS) *AjaxAction
func (*AjaxAction) SetSuccessJS ¶ added in v1.2.14
func (ajax *AjaxAction) SetSuccessJS(successJS template.JS) *AjaxAction
func (*AjaxAction) SetUrl ¶ added in v1.2.0
func (ajax *AjaxAction) SetUrl(url string) *AjaxAction
func (*AjaxAction) WithAlert ¶ added in v1.2.3
func (ajax *AjaxAction) WithAlert(data ...AlertData) *AjaxAction
type AjaxData ¶ added in v1.2.0
type AjaxData map[string]interface{}
func NewAjaxData ¶ added in v1.2.0
func NewAjaxData() AjaxData
type AlertData ¶ added in v1.2.3
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 ¶ added in v1.2.4
func (*BaseAction) BtnAttribute ¶ added in v1.2.4
func (base *BaseAction) BtnAttribute() template.HTML
func (*BaseAction) BtnClass ¶ added in v1.2.4
func (base *BaseAction) BtnClass() template.HTML
func (*BaseAction) ExtContent ¶ added in v1.2.4
func (base *BaseAction) ExtContent(ctx *context.Context) template.HTML
func (*BaseAction) FooterContent ¶ added in v1.2.6
func (base *BaseAction) FooterContent(ctx *context.Context) template.HTML
func (*BaseAction) GetCallbacks ¶ added in v1.2.4
func (base *BaseAction) GetCallbacks() context.Node
func (*BaseAction) Js ¶ added in v1.2.4
func (base *BaseAction) Js() template.JS
func (*BaseAction) SetBtnData ¶ added in v1.2.4
func (base *BaseAction) SetBtnData(data interface{})
func (*BaseAction) SetBtnId ¶ added in v1.2.4
func (base *BaseAction) SetBtnId(btnId string)
type Event ¶ added in v1.2.16
type Event string
const ( EventBlur Event = "blur" EventFocus Event = "focus" EventFocusin Event = "focusin" EventFocusout Event = "focusout" EventLoad Event = "load" EventResize Event = "resize" EventScroll Event = "scroll" EventUnload Event = "unload" EventClick Event = "click" EventDblclick Event = "dblclick" EventMousedown Event = "mousedown" EventMouseup Event = "mouseup" EventMousemove Event = "mousemove" EventMouseover Event = "mouseover" EventMouseout Event = "mouseout" EventMouseenter Event = "mouseenter" EventMouseleave Event = "mouseleave" EventChange Event = "change" EventSelect Event = "select" EventSubmit Event = "submit" EventKeydown Event = "keydown" EventKeypress Event = "keypress" EventKeyup Event = "keyup" EventError Event = "error" )
type FieldFilterAction ¶ added in v1.2.4
type FieldFilterAction struct { BaseAction Field string }
func FieldFilter ¶ added in v1.2.4
func FieldFilter(field string) *FieldFilterAction
func (*FieldFilterAction) ExtContent ¶ added in v1.2.4
func (jump *FieldFilterAction) ExtContent(ctx *context.Context) template.HTML
type FileUploadAction ¶ added in v1.2.8
type FileUploadAction struct { BaseAction Url string Method string FileName string Handlers []context.Handler }
func FileUpload ¶ added in v1.2.8
func FileUpload(id string, handler types.Handler) *FileUploadAction
func (*FileUploadAction) BtnAttribute ¶ added in v1.2.8
func (file *FileUploadAction) BtnAttribute() template.HTML
func (*FileUploadAction) FooterContent ¶ added in v1.2.8
func (file *FileUploadAction) FooterContent(ctx *context.Context) template.HTML
func (*FileUploadAction) GetCallbacks ¶ added in v1.2.8
func (file *FileUploadAction) GetCallbacks() context.Node
func (*FileUploadAction) Js ¶ added in v1.2.8
func (file *FileUploadAction) Js() template.JS
func (*FileUploadAction) SetMethod ¶ added in v1.2.8
func (file *FileUploadAction) SetMethod(method string) *FileUploadAction
func (*FileUploadAction) SetUrl ¶ added in v1.2.8
func (file *FileUploadAction) SetUrl(url string) *FileUploadAction
type GetCtxForm ¶ added in v1.2.24
type IframeData ¶ added in v1.2.11
type JumpAction ¶
func JumpInNewTab ¶ added in v1.2.0
func JumpInNewTab(url, title string, ext ...template.HTML) *JumpAction
func JumpWithTarget ¶ added in v1.2.15
func JumpWithTarget(url, target string, ext ...template.HTML) *JumpAction
func (*JumpAction) BtnAttribute ¶
func (jump *JumpAction) BtnAttribute() template.HTML
func (*JumpAction) BtnClass ¶ added in v1.2.0
func (jump *JumpAction) BtnClass() template.HTML
func (*JumpAction) ExtContent ¶
func (jump *JumpAction) ExtContent(ctx *context.Context) template.HTML
func (*JumpAction) GetCallbacks ¶ added in v1.1.8
func (jump *JumpAction) GetCallbacks() context.Node
type JumpOption ¶ added in v1.2.4
type JumpOptions ¶ added in v1.2.4
type JumpOptions []JumpOption
type JumpSelectBoxAction ¶ added in v1.2.4
type JumpSelectBoxAction struct { BaseAction Options JumpOptions NewTabTitle string }
func SelectBoxJump ¶ added in v1.2.4
func SelectBoxJump(options JumpOptions) *JumpSelectBoxAction
func (*JumpSelectBoxAction) ExtContent ¶ added in v1.2.4
func (jump *JumpSelectBoxAction) ExtContent(ctx *context.Context) template.HTML
type PopUpAction ¶
type PopUpAction struct { BaseAction Url string Method string Id string Title string Draggable bool Width string Height string HasIframe bool BtnTitle template.HTML ParameterJS template.JS Data AjaxData Handlers []context.Handler Event Event }
func PopUpWithCtxForm ¶ added in v1.2.24
func PopUpWithCtxForm(data PopUpData, fn GetCtxForm, url string) *PopUpAction
func PopUpWithForm ¶ added in v1.2.12
func PopUpWithForm(data PopUpData, fn GetForm, url string) *PopUpAction
func PopUpWithIframe ¶ added in v1.2.11
func PopUpWithIframe(id, title string, data IframeData, width, height string) *PopUpAction
func (*PopUpAction) BtnAttribute ¶
func (pop *PopUpAction) BtnAttribute() template.HTML
func (*PopUpAction) FooterContent ¶ added in v1.2.6
func (pop *PopUpAction) FooterContent(ctx *context.Context) template.HTML
func (*PopUpAction) GetCallbacks ¶ added in v1.1.8
func (pop *PopUpAction) GetCallbacks() context.Node
func (*PopUpAction) Js ¶
func (pop *PopUpAction) Js() template.JS
func (*PopUpAction) SetBtnTitle ¶ added in v1.2.8
func (pop *PopUpAction) SetBtnTitle(title template.HTML) *PopUpAction
func (*PopUpAction) SetData ¶ added in v1.2.0
func (pop *PopUpAction) SetData(data map[string]interface{}) *PopUpAction
func (*PopUpAction) SetDraggable ¶ added in v1.2.11
func (pop *PopUpAction) SetDraggable() *PopUpAction
func (*PopUpAction) SetEvent ¶ added in v1.2.16
func (pop *PopUpAction) SetEvent(event Event) *PopUpAction
func (*PopUpAction) SetHeight ¶ added in v1.2.11
func (pop *PopUpAction) SetHeight(height string) *PopUpAction
func (*PopUpAction) SetMethod ¶ added in v1.1.8
func (pop *PopUpAction) SetMethod(method string) *PopUpAction
func (*PopUpAction) SetParameterJS ¶ added in v1.2.14
func (pop *PopUpAction) SetParameterJS(parameterJS template.JS) *PopUpAction
func (*PopUpAction) SetUrl ¶ added in v1.1.8
func (pop *PopUpAction) SetUrl(url string) *PopUpAction
func (*PopUpAction) SetWidth ¶ added in v1.2.11
func (pop *PopUpAction) SetWidth(width string) *PopUpAction
Click to show internal directories.
Click to hide internal directories.