alert

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Demo added in v0.0.3

func Demo() app.UI

Types

type ActionCloseButton added in v0.0.3

type ActionCloseButton struct {
	AriaLabel    string
	ClassName    []string
	OnClose      app.EventHandler
	VariantLabel string
}
type ActionLink struct {
	Children  string
	ClassName []string
	OnClick   app.EventHandler
}

type Alert added in v0.0.3

type Alert struct {
	ID          string
	Title       string
	ActionClose *ActionCloseButton
	ActionLinks []*ActionLink
	AriaLabel   string
	Children    []app.UI
	ClassName   []string
	CustomIcon  app.UI
	Expandable  bool
	Inline      bool
	LiveRegion  bool
	Plain       bool
	// TODO: timeouts and tool tips
	//Timeout           time.Duration
	TitleHeadingLevel string
	ToggleAriaLabel   string
	//ToolTipPosition   string
	TruncateTitle int
	Variant       Variant
	VariantLabel  string
}

func (*Alert) UI added in v0.0.3

func (a *Alert) UI() app.UI

type CustomIcon

type CustomIcon struct {
	app.Compo
}

func (*CustomIcon) Render

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

type Expandable

type Expandable struct {
	app.Compo
}

func (*Expandable) Render

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

type InlinePlain

type InlinePlain struct {
	app.Compo
}

func (*InlinePlain) Render

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

type InlineTypes

type InlineTypes struct {
	app.Compo
}

func (*InlineTypes) Render

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

type InlineVariations

type InlineVariations struct {
	app.Compo
}

func (*InlineVariations) Render

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

type Types

type Types struct {
	app.Compo
}

func (*Types) Render

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

type Variant added in v0.0.3

type Variant string
const (
	Default Variant = "default"
	Info    Variant = "info"
	Success Variant = "success"
	Warning Variant = "warning"
	Danger  Variant = "danger"
)

func Variants added in v0.0.3

func Variants() []Variant

type Variations

type Variations struct {
	app.Compo
}

func (*Variations) Render

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

Jump to

Keyboard shortcuts

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