tutorial

package
v0.31.10 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package tutorial contains the tutorial for learning about GoRADD.

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, _w io.Writer) (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, _w io.Writer) (err error)

func (*FilePanel) SetFile

func (p *FilePanel) SetFile(f string)

type IndexForm

type IndexForm struct {
	FormBase
	Cat string
	Num int
}

func (*IndexForm) AddHeadTags

func (ctrl *IndexForm) AddHeadTags()

func (*IndexForm) AddRelatedFiles added in v0.5.0

func (f *IndexForm) AddRelatedFiles()

func (*IndexForm) CreateControls added in v0.29.0

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

func (*IndexForm) DoAction added in v0.23.0

func (f *IndexForm) DoAction(ctx context.Context, a action.Params)

func (*IndexForm) DrawTemplate

func (ctrl *IndexForm) DrawTemplate(ctx context.Context, _w io.Writer) (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) DoAction added in v0.23.0

func (p *SourcePanel) DoAction(ctx context.Context, a action.Params)

func (*SourcePanel) Init added in v0.5.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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