button

package
v0.0.0-...-958e9d3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Div

type Div struct {
	vecty.Core
	Text               string               `vecty:"prop"`
	Color              color.Value          `vecty:"prop"`
	Background         background.Value     `vecty:"prop"`
	Padding            padding.Value        `vecty:"prop"`
	Margin             margin.Value         `vecty:"prop"`
	Border             border.Value         `vecty:"prop"`
	HoverColor         color.Value          `vecty:"prop"`
	HoverBackground    background.Value     `vecty:"prop"`
	DisabledColor      color.Value          `vecty:"prop"`
	DisabledBackground background.Value     `vecty:"prop"`
	Click              func(i *vecty.Event) `vecty:"prop"`
	MouseEnter         func(i *vecty.Event) `vecty:"prop"`
	MouseLeave         func(i *vecty.Event) `vecty:"prop"`
	Extra              []vecty.Applyer      `vecty:"prop"`
	Disabled           bool                 `vecty:"prop"`
	Focusable          bool                 `vecty:"prop"`
	// contains filtered or unexported fields
}

func (*Div) Render

func (d *Div) Render() vecty.ComponentOrHTML

type Generic

type Generic struct {
	vecty.Core
	Div         func() vecty.ComponentOrHTML          `vecty:"prop"`
	HoverDiv    func() vecty.ComponentOrHTML          `vecty:"prop"`
	DisabledDiv func() vecty.ComponentOrHTML          `vecty:"prop"`
	Click       func(i *vecty.Event, button *Generic) `vecty:"prop"`
	MouseEnter  func(i *vecty.Event, button *Generic) `vecty:"prop"`
	MouseLeave  func(i *vecty.Event, button *Generic) `vecty:"prop"`
	Extra       []vecty.Applyer                       `vecty:"prop"`
	Disabled    bool                                  `vecty:"prop"`
	Focusable   bool                                  `vecty:"prop"`
	// contains filtered or unexported fields
}

func (*Generic) Hovering

func (g *Generic) Hovering() bool

func (*Generic) Render

func (g *Generic) Render() vecty.ComponentOrHTML

func (*Generic) SetHover

func (g *Generic) SetHover(hovering bool)

type Simple

type Simple struct {
	vecty.Core
	Text               string               `vecty:"prop"`
	Color              color.Value          `vecty:"prop"`
	Background         background.Value     `vecty:"prop"`
	Padding            padding.Value        `vecty:"prop"`
	Margin             margin.Value         `vecty:"prop"`
	Border             border.Value         `vecty:"prop"`
	HoverColor         color.Value          `vecty:"prop"`
	HoverBackground    background.Value     `vecty:"prop"`
	DisabledColor      color.Value          `vecty:"prop"`
	DisabledBackground background.Value     `vecty:"prop"`
	Click              func(i *vecty.Event) `vecty:"prop"`
	MouseEnter         func(i *vecty.Event) `vecty:"prop"`
	MouseLeave         func(i *vecty.Event) `vecty:"prop"`
	Extra              []vecty.Applyer      `vecty:"prop"`
	Disabled           bool                 `vecty:"prop"`
	// contains filtered or unexported fields
}

func (*Simple) Render

func (s *Simple) Render() vecty.ComponentOrHTML

Jump to

Keyboard shortcuts

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