Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Dashboards map[string]*DSL = map[string]*DSL{}
Dashboards the loaded dashboard widgets
Functions ¶
Types ¶
type ActionDSL ¶
type ActionDSL struct {
Setting *action.Process `json:"setting,omitempty"`
Component *action.Process `json:"-"`
Data *action.Process `json:"data,omitempty"`
BeforeData *hook.Before `json:"before:data,omitempty"`
AfterData *hook.After `json:"after:data,omitempty"`
}
ActionDSL the dashboard action DSL
func (*ActionDSL) SetDefaultProcess ¶
func (act *ActionDSL) SetDefaultProcess()
SetDefaultProcess set the default value of action
type DSL ¶
type DSL struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Action *ActionDSL `json:"action"`
Layout *LayoutDSL `json:"layout"`
Fields *FieldsDSL `json:"fields"`
Config map[string]interface{} `json:"config,omitempty"`
CProps field.CloudProps `json:"-"`
compute.Computable
*mapping.Mapping
}
DSL the dashboard DSL
func MustGet ¶
func MustGet(dashboard interface{}) *DSL
MustGet Get dashboard via process or id thow error
func (*DSL) Actions ¶
func (dsl *DSL) Actions() []component.ActionsExport
Actions get the dashboard actions
type FieldsDSL ¶
type FieldsDSL struct {
Filter field.Filters `json:"filter,omitempty"`
Dashboard field.Columns `json:"dashboard,omitempty"`
// contains filtered or unexported fields
}
FieldsDSL the dashboard fields DSL
type FilterLayoutDSL ¶
type FilterLayoutDSL struct {
Actions component.Actions `json:"actions,omitempty"`
Columns component.Instances `json:"columns,omitempty"`
}
FilterLayoutDSL layout.filter
type LayoutDSL ¶
type LayoutDSL struct {
Actions component.Actions `json:"actions,omitempty"`
Dashboard *ViewLayoutDSL `json:"dashboard,omitempty"`
Filter *FilterLayoutDSL `json:"filter,omitempty"`
}
LayoutDSL the dashboard layout DSL
type ViewLayoutDSL ¶
ViewLayoutDSL layout.form
Click to show internal directories.
Click to hide internal directories.