Documentation ¶
Index ¶
- Variables
- type DataTable
- func (d *DataTable) GetAjaxRoute() string
- func (d *DataTable) GetColumns() []DataTableColumn
- func (d *DataTable) GetColumnsJson() template.JS
- func (d *DataTable) GetColumnsLen() int
- func (d *DataTable) GetDataJson() template.JS
- func (d *DataTable) GetTableId() template.JS
- func (d *DataTable) HasData() bool
- func (d *DataTable) IsAjax() bool
- type DataTableColumn
- type DefaultErrorHandler
- type ErrorHandler
- type FileOpener
- type Logger
- type Module
- func (m *Module) DefaultFileServer(ctx *fasthttp.RequestCtx)
- func (m *Module) DefaultFiveHundredError(ctx *fasthttp.RequestCtx)
- func (m *Module) DefaultFourOFourError(ctx *fasthttp.RequestCtx)
- func (m *Module) ExecuteViewModel(ctx *fasthttp.RequestCtx, viewModel cbweb.ExecutableViewModel) error
- func (m *Module) GenerateTemplate(fileNames []string) (*templates.InheritanceMultiTemplate, error)
- func (m *Module) GetFiveHundredError() func(ctx *fasthttp.RequestCtx)
- func (m *Module) GetGlobalTemplates() map[string][]byte
- func (m *Module) Redirect(ctx *fasthttp.RequestCtx, uri string)
- func (m *Module) SetDefaults()
- func (m *Module) SetGlobalTemplates(templates map[string][]byte)
- func (m *Module) SetRoutes(routes *router.Router)
Constants ¶
This section is empty.
Variables ¶
View Source
var DataTableEditButtonHtml = `<a data-id="%d" class="material-table-edit-row" href="#"><i class="material-icons">edit</i></a>`
Functions ¶
This section is empty.
Types ¶
type DataTable ¶ added in v0.7.0
type DataTable struct { TableId template.JS Columns []DataTableColumn Data [][]interface{} AjaxRoute string GroupByColumn bool GroupColumnOffset int }
func (*DataTable) GetAjaxRoute ¶ added in v0.7.0
func (*DataTable) GetColumns ¶ added in v0.7.0
func (d *DataTable) GetColumns() []DataTableColumn
func (*DataTable) GetColumnsJson ¶ added in v0.7.0
func (*DataTable) GetColumnsLen ¶ added in v0.10.9
func (*DataTable) GetDataJson ¶ added in v0.7.0
func (*DataTable) GetTableId ¶ added in v0.7.0
type DataTableColumn ¶ added in v0.10.2
func (*DataTableColumn) GetEditable ¶ added in v0.10.2
func (c *DataTableColumn) GetEditable() bool
func (*DataTableColumn) GetEditableName ¶ added in v0.10.2
func (c *DataTableColumn) GetEditableName() string
func (*DataTableColumn) GetFilterable ¶ added in v0.10.2
func (c *DataTableColumn) GetFilterable() bool
func (*DataTableColumn) GetTitle ¶ added in v0.10.2
func (c *DataTableColumn) GetTitle() string
type DefaultErrorHandler ¶
type DefaultErrorHandler struct{}
func (DefaultErrorHandler) Error ¶
func (d DefaultErrorHandler) Error(e error)
type ErrorHandler ¶
type ErrorHandler interface { Error(e error) Recover() }
type Module ¶
type Module struct { Env string Version string BrandName string TemplateCache cbweb.CacheProvider FileServer func(ctx *fasthttp.RequestCtx) FourOFourError func(ctx *fasthttp.RequestCtx) FiveHundredError func(ctx *fasthttp.RequestCtx) TemplateFuncs template.FuncMap TemplatesBox FileOpener WebAssets FileOpener ErrorHandler ErrorHandler Logger Logger // contains filtered or unexported fields }
func (*Module) DefaultFileServer ¶
func (m *Module) DefaultFileServer(ctx *fasthttp.RequestCtx)
func (*Module) DefaultFiveHundredError ¶
func (m *Module) DefaultFiveHundredError(ctx *fasthttp.RequestCtx)
func (*Module) DefaultFourOFourError ¶
func (m *Module) DefaultFourOFourError(ctx *fasthttp.RequestCtx)
func (*Module) ExecuteViewModel ¶ added in v0.8.0
func (m *Module) ExecuteViewModel(ctx *fasthttp.RequestCtx, viewModel cbweb.ExecutableViewModel) error
func (*Module) GenerateTemplate ¶
func (m *Module) GenerateTemplate(fileNames []string) (*templates.InheritanceMultiTemplate, error)
func (*Module) GetFiveHundredError ¶
func (m *Module) GetFiveHundredError() func(ctx *fasthttp.RequestCtx)
func (*Module) GetGlobalTemplates ¶
func (*Module) Redirect ¶ added in v0.10.4
func (m *Module) Redirect(ctx *fasthttp.RequestCtx, uri string)
func (*Module) SetDefaults ¶ added in v0.6.0
func (m *Module) SetDefaults()
func (*Module) SetGlobalTemplates ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.