tutorial

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 13 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 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
	File string
	Base string
}

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
	Cat string
	Num int
}

func (*IndexForm) Action

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

func (*IndexForm) AddHeadTags

func (ctrl *IndexForm) AddHeadTags()

func (*IndexForm) AddRelatedFiles added in v0.5.0

func (f *IndexForm) AddRelatedFiles()

func (*IndexForm) DrawTemplate

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

func (*IndexForm) Init added in v0.5.0

func (f *IndexForm) Init(ctx context.Context, formID string)

func (*IndexForm) LoadControls

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

func (*IndexForm) ShowSourceDialog added in v0.5.0

func (f *IndexForm) ShowSourceDialog()

type SourcePanel

type SourcePanel struct {
	Panel
	ButtonPanel *Panel
	FilePanel   *FilePanel
}

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)

func (*SourcePanel) Init added in v0.5.0

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

Directories

Path Synopsis
orm

Jump to

Keyboard shortcuts

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