go-admin: github.com/GoAdminGroup/go-admin/template/types/action Index | Files

package action

import "github.com/GoAdminGroup/go-admin/template/types/action"

Index

Package Files

jump.go popup.go

type JumpAction Uses

type JumpAction struct {
    BtnId       string
    Url         string
    Ext         template.HTML
    JS          template.JS
    NewTabTitle string
}

func Jump Uses

func Jump(url string, ext ...template.HTML) *JumpAction

func JumpInNewTab Uses

func JumpInNewTab(url, title string, ext ...template.HTML) *JumpAction

func (*JumpAction) BtnAttribute Uses

func (jump *JumpAction) BtnAttribute() template.HTML

func (*JumpAction) ExtContent Uses

func (jump *JumpAction) ExtContent() template.HTML

func (*JumpAction) GetCallbacks Uses

func (jump *JumpAction) GetCallbacks() context.Node

func (*JumpAction) Js Uses

func (jump *JumpAction) Js() template.JS

func (*JumpAction) SetBtnId Uses

func (jump *JumpAction) SetBtnId(btnId string)

type PopUpAction Uses

type PopUpAction struct {
    BtnId    string
    Url      string
    Method   string
    Id       string
    Title    string
    Handlers []context.Handler
}
func PopUp(url, title string, handlers ...context.Handler) *PopUpAction

func (*PopUpAction) BtnAttribute Uses

func (pop *PopUpAction) BtnAttribute() template.HTML

func (*PopUpAction) ExtContent Uses

func (pop *PopUpAction) ExtContent() template.HTML

func (*PopUpAction) GetCallbacks Uses

func (pop *PopUpAction) GetCallbacks() context.Node

func (*PopUpAction) Js Uses

func (pop *PopUpAction) Js() template.JS

func (*PopUpAction) SetBtnId Uses

func (pop *PopUpAction) SetBtnId(btnId string)

func (*PopUpAction) SetMethod Uses

func (pop *PopUpAction) SetMethod(method string)

func (*PopUpAction) SetUrl Uses

func (pop *PopUpAction) SetUrl(url string)

Package action imports 4 packages (graph) and is imported by 3 packages. Updated 2020-02-06. Refresh now. Tools for package owners.