Documentation ¶
Overview ¶
Package control contains custom controls and modifications of standard controls that are used throughout the site.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormBase ¶
FormBase is the local form override. All generated forms descend from this one. You can change how all the forms in your application work by making modifications here, and then making sure all your forms include this one.
For example:
type MyForm struct { control.FormBase myValue int }
func (*FormBase) AddHeadTags ¶ added in v0.2.3
func (f *FormBase) AddHeadTags()
AddHeadTags is the place to add head tags for the header of the page by calling control.Page.AddHtmlHeaderTag
func (*FormBase) AddRelatedFiles ¶
func (f *FormBase) AddRelatedFiles()
AddRelatedFiles is the place to add css, javascript and other files that should be loaded for all forms.
To add css files, call control.FormBase.AddStyleSheetFile.
To add javascript files, call control.FormBase.AddJavaScriptFile
If you are using Bootstrap, you should also call github.com/goradd/goradd/pkg/bootstrap/config.LoadBootstrap to initialize it here.