Documentation ¶
Index ¶
- type Action
- type ActionBar
- func (bar *ActionBar) Actions(actions ...ActionInterface) *ActionBar
- func (bar *ActionBar) EditMode(w http.ResponseWriter, r *http.Request) bool
- func (bar *ActionBar) FuncMap(w http.ResponseWriter, r *http.Request) template.FuncMap
- func (bar *ActionBar) RegisterAction(action ActionInterface)
- func (bar *ActionBar) Render(w http.ResponseWriter, r *http.Request) template.HTML
- func (bar *ActionBar) RenderEditButton(w http.ResponseWriter, r *http.Request, title string, link string) template.HTML
- func (bar *ActionBar) RenderEditButtonWithResource(w http.ResponseWriter, r *http.Request, value interface{}, ...) template.HTML
- type ActionInterface
- type EditResourceAction
- type HTMLAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
func (Action) InlineAction ¶
type ActionBar ¶
type ActionBar struct { Admin *admin.Admin GlobalActions []ActionInterface // contains filtered or unexported fields }
ActionBar stores configuration about a action bar.
func (*ActionBar) Actions ¶
func (bar *ActionBar) Actions(actions ...ActionInterface) *ActionBar
Actions register actions
func (*ActionBar) RegisterAction ¶
func (bar *ActionBar) RegisterAction(action ActionInterface)
RegisterAction register global action
func (*ActionBar) Render ¶
Render will return the HTML of the bar, used this function to render the bar in frontend page's template or layout
func (*ActionBar) RenderEditButton ¶
type ActionInterface ¶
type EditResourceAction ¶
type EditResourceAction struct { EditModeOnly bool Inline bool Value interface{} Resource *admin.Resource }
func (EditResourceAction) InlineAction ¶
func (action EditResourceAction) InlineAction() bool
type HTMLAction ¶
func (HTMLAction) InlineAction ¶
func (action HTMLAction) InlineAction() bool
Click to show internal directories.
Click to hide internal directories.