Documentation ¶
Index ¶
- Variables
- type Action
- type ActionBar
- func (bar *ActionBar) Actions(actions ...ActionInterface) *ActionBar
- func (bar *ActionBar) EditMode(context *admin.Context) bool
- func (bar *ActionBar) FuncMap(context *admin.Context) template.FuncMap
- func (bar *ActionBar) PrepareAdmin(Admin *admin.Admin)
- func (bar *ActionBar) RegisterAction(action ActionInterface)
- func (bar *ActionBar) Render(context *admin.Context) template.HTML
- func (bar *ActionBar) RenderEditButton(context *admin.Context, title string, link string) template.HTML
- func (bar *ActionBar) RenderEditButtonWithResource(context *admin.Context, value interface{}, resources ...*admin.Resource) template.HTML
- type ActionInterface
- type EditResourceAction
- type HTMLAction
- type Plugin
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PKG = path_helpers.GetCalledDir() I18NGROUP = i18nmod.PkgToGroup(PKG) )
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) PrepareAdmin ¶
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
type Plugin ¶
type Plugin struct { plug.EventDispatcher admin_plugin.AdminNames }
Click to show internal directories.
Click to hide internal directories.