control

package
v0.31.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 2 Imported by: 0

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

type FormBase struct {
	control.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.

func (*FormBase) Init

func (f *FormBase) Init(self any, ctx context.Context, id string)

Init initializes the form values. You can use this particular version to define and include a custom page drawing template, among other things.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL