Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Pages = map[string]func(*Router) Page{}
Functions ¶
Types ¶
type HandlerFunc ¶
type HandlerFunc = func(data interface{}) messages.MessageResponse
type Page ¶
type Page interface { Actions() []component.AppBarAction Overflow() []component.OverflowAction Layout(gtx layout.Context, th *material.Theme) layout.Dimensions // handle events from program Handler(data any) messages.MessageResponse }
type Router ¶
type Router struct { Ctx context.Context Wg sync.WaitGroup Invalidate func() Theme *material.Theme *component.AppBar *component.ModalLayer NonModalDrawer, BottomBar bool // contains filtered or unexported fields }
func (*Router) Handler ¶
func (r *Router) Handler(data interface{}) messages.MessageResponse
Click to show internal directories.
Click to hide internal directories.