example

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingAction              = "ping"
	CounterAction           = "count"
	ReloadAction            = "reload"
	DoubleClickNoticeAction = "doubleClickNotice"
	ContextMenuNoticeAction = "contextMenuNotice"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionContext

type ActionContext struct {
	ClientID string
	State    *AppState
}

func (ActionContext) GetClientId

func (ctx ActionContext) GetClientId() string

type AppState

type AppState struct {
	Counter int
}

func NewAppState

func NewAppState() *AppState

type IndexPage

type IndexPage struct {
	Context         *gin.Context
	Title           string
	BlueButtonStyle *utils.Style
	RedButtonStyle  *utils.Style
	HeadlineStyle   *utils.Style
}

func NewIndexPage

func NewIndexPage(ctx *gin.Context) *IndexPage

func (*IndexPage) GetCounterDisplay added in v0.0.4

func (ctx *IndexPage) GetCounterDisplay() templ.Component

func (*IndexPage) GetDecreaseCounterButton added in v0.0.4

func (ctx *IndexPage) GetDecreaseCounterButton() templ.Component

func (*IndexPage) GetHeaderSection added in v0.0.15

func (ctx *IndexPage) GetHeaderSection() templ.Component

func (*IndexPage) GetIncreaseCounterButton added in v0.0.4

func (ctx *IndexPage) GetIncreaseCounterButton() templ.Component

func (*IndexPage) GetMainSection added in v0.0.15

func (ctx *IndexPage) GetMainSection() templ.Component

func (*IndexPage) Render

func (ctx *IndexPage) Render() string

Directories

Path Synopsis
templ: version: 0.2.476
templ: version: 0.2.476

Jump to

Keyboard shortcuts

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