demo

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 28 Imported by: 1

Documentation

Index

Constants

View Source
const GitHubSvg = `` /* 710-byte string literal not displayed */

Variables

View Source
var NavigationItems []*list.Item

Functions

func BuildHandler

func BuildHandler() *app.Handler

func FlexGrid

func FlexGrid(cells ...app.UI) app.UI

func GopherCard

func GopherCard(title string) app.UI

func GridRow

func GridRow(rowText string, component app.UI, actions ...app.UI) app.UI

func PageBody

func PageBody(pageContent ...app.UI) app.UI

PageBody applies the navigation, update banner, and demo page layout to the provided pageContent.

func Routes

func Routes()

Types

type AppUpdateBanner

type AppUpdateBanner struct {
	app.Compo
	base.JsUtil
	// contains filtered or unexported fields
}

AppUpdateBanner demonstrates how to wrap banner.Banner to handle go-app OnAppUpdate.

func (*AppUpdateBanner) OnAppUpdate

func (d *AppUpdateBanner) OnAppUpdate(ctx app.Context)

func (*AppUpdateBanner) OnMount

func (d *AppUpdateBanner) OnMount(ctx app.Context)

func (*AppUpdateBanner) Render

func (d *AppUpdateBanner) Render() app.UI

type BannerDemo

type BannerDemo struct {
	app.Compo
	base.JsUtil
	// contains filtered or unexported fields
}

func (*BannerDemo) OnMount

func (c *BannerDemo) OnMount(ctx app.Context)

func (*BannerDemo) Render

func (c *BannerDemo) Render() app.UI

type ButtonDemo

type ButtonDemo struct {
	app.Compo
	// contains filtered or unexported fields
}

func (*ButtonDemo) Render

func (d *ButtonDemo) Render() app.UI

type CardDemo

type CardDemo struct {
	app.Compo
}

func (CardDemo) Render

func (d CardDemo) Render() app.UI

type CheckboxDemo

type CheckboxDemo struct {
	app.Compo
	// contains filtered or unexported fields
}

func (*CheckboxDemo) Render

func (d *CheckboxDemo) Render() app.UI

type CodeDemo

type CodeDemo struct {
	app.Compo
	base.JsUtil
	Content string
	Active  int
	// contains filtered or unexported fields
}

func (*CodeDemo) OnMount

func (d *CodeDemo) OnMount(ctx app.Context)

func (*CodeDemo) OnNav

func (d *CodeDemo) OnNav(ctx app.Context)

func (*CodeDemo) Render

func (d *CodeDemo) Render() app.UI

func (*CodeDemo) SetActive

func (d *CodeDemo) SetActive(index int)

type DialogDemo

type DialogDemo struct {
	app.Compo
}

func (*DialogDemo) Render

func (d *DialogDemo) Render() app.UI

type DrawerDemo

type DrawerDemo struct {
	app.Compo
	base.JsUtil
}

func (*DrawerDemo) OnMount

func (d *DrawerDemo) OnMount(ctx app.Context)

func (*DrawerDemo) Render

func (d *DrawerDemo) Render() app.UI

type FabDemo

type FabDemo struct {
	app.Compo
	// contains filtered or unexported fields
}

func (*FabDemo) Render

func (d *FabDemo) Render() app.UI

type FormDemo

type FormDemo struct {
	app.Compo
}

func (*FormDemo) Render

func (e *FormDemo) Render() app.UI

type IconDemo

type IconDemo struct {
	app.Compo
	base.JsUtil
	// contains filtered or unexported fields
}

func (*IconDemo) IconButtonClicked

func (d *IconDemo) IconButtonClicked(button app.HTMLButton)

func (*IconDemo) Render

func (d *IconDemo) Render() app.UI

type Index

type Index struct {
	app.Compo
}

func (*Index) Render

func (i *Index) Render() app.UI

type ListDemo

type ListDemo struct {
	app.Compo
	base.JsUtil
}

func (*ListDemo) Render

func (d *ListDemo) Render() app.UI

type Message

type Message struct {
	app.Compo
	Text string
}

func (*Message) Render

func (c *Message) Render() app.UI
type Navigation struct {
	app.Compo
	base.JsUtil
	Type drawer.Type
	// contains filtered or unexported fields
}
func (n *Navigation) OnMount(ctx app.Context)
func (n *Navigation) Render() app.UI

type ProgressDemo

type ProgressDemo struct {
	app.Compo
	base.JsUtil
	// contains filtered or unexported fields
}

func (*ProgressDemo) Render

func (d *ProgressDemo) Render() app.UI

type SelectDemo

type SelectDemo struct {
	app.Compo
	base.JsUtil
	// contains filtered or unexported fields
}

func (*SelectDemo) OnMount

func (s *SelectDemo) OnMount(ctx app.Context)

func (*SelectDemo) Render

func (s *SelectDemo) Render() app.UI

type SliderDemo

type SliderDemo struct {
	app.Compo
	base.JsUtil
}

func (*SliderDemo) Render

func (d *SliderDemo) Render() app.UI

type SnackBarDemo

type SnackBarDemo struct {
	app.Compo
	base.JsUtil
	// contains filtered or unexported fields
}

func (*SnackBarDemo) OnMount

func (s *SnackBarDemo) OnMount(ctx app.Context)

func (*SnackBarDemo) Render

func (s *SnackBarDemo) Render() app.UI

type TabDemo

type TabDemo struct {
	app.Compo
}

func (*TabDemo) Render

func (d *TabDemo) Render() app.UI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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