tutorial

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileAction = iota + 1
	CloseAction
)
View Source
const IndexFormId = "IndexForm"
View Source
const IndexFormPath = "/goradd/tutorial.g"
View Source
const (
	ViewSourceAction = iota + 1
)

Variables

This section is empty.

Functions

func NewDefaultPanel

func NewDefaultPanel(ctx context.Context, parent page.ControlI)

func NewIndexForm

func NewIndexForm(ctx context.Context) page.FormI

func RegisterTutorialPage

func RegisterTutorialPage(category string, order int, id string, title string, f createFunction, files []string)

Types

type DefaultPanel

type DefaultPanel struct {
	Panel
}

func (*DefaultPanel) DrawTemplate

func (ctrl *DefaultPanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)

type FilePanel

type FilePanel struct {
	Panel
	// contains filtered or unexported fields
}

func NewFilePanel

func NewFilePanel(parent page.ControlI) *FilePanel

func (*FilePanel) DrawTemplate

func (ctrl *FilePanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)

func (*FilePanel) SetFile

func (p *FilePanel) SetFile(f string)

type IndexForm

type IndexForm struct {
	FormBase
	// contains filtered or unexported fields
}

func (*IndexForm) Action

func (f *IndexForm) Action(ctx context.Context, a page.ActionParams)

func (*IndexForm) AddHeadTags

func (ctrl *IndexForm) AddHeadTags()

func (*IndexForm) DrawTemplate

func (ctrl *IndexForm) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)

func (*IndexForm) LoadControls

func (f *IndexForm) LoadControls(ctx context.Context)

type SourcePanel

type SourcePanel struct {
	Panel
	// contains filtered or unexported fields
}

func GetSourcePanel

func GetSourcePanel(p page.ControlI) *SourcePanel

func NewSourcePanel

func NewSourcePanel(parent page.ControlI, id string) *SourcePanel

func (*SourcePanel) Action

func (p *SourcePanel) Action(ctx context.Context, a page.ActionParams)

Directories

Path Synopsis
orm

Jump to

Keyboard shortcuts

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