button

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClassPrimary    = "primary"
	ClassSecondary  = "secondary"
	ClassSuccess    = "success"
	ClassDanger     = "danger"
	ClassWarning    = "warning"
	ClassInfo       = "info"
	ClassLight      = "light"
	ClassDark       = "dark"
	DefaultClassGet = ClassPrimary
	DefaultClassDo  = ClassPrimary
	DefaultClassSet = ClassWarning
)

Button sytling class constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	// contains filtered or unexported fields
}

Button implements all auto_frontend button interfaces

func NewDo

func NewDo(label string, class string, cb auto_frontend.DoCallback) *Button

NewDo returns a new button with a auto_frontend.DoCallback

func NewGet

func NewGet(label string, class string, keys Keys, cb auto_frontend.GetCallback) *Button

NewGet returns a new button with a auto_frontend.GetCallback

func NewSet

func NewSet(label string, class string, keys Keys, cb auto_frontend.SetCallback) *Button

NewSet returns a new button with a auto_frontend.SetCallback

func (*Button) CallbackDo

func (b *Button) CallbackDo()

CallbackDo calls the doCallback function

func (*Button) CallbackGet

func (b *Button) CallbackGet() map[string]interface{}

CallbackGet returns the call of the getCallback function

func (*Button) CallbackSet

func (b *Button) CallbackSet(data map[string]interface{})

CallbackSet calls the setCallback function with data

func (*Button) Class

func (b *Button) Class() string

Class returns Button.class

func (*Button) ID

func (b *Button) ID() string

ID returns Button.id

func (*Button) Keys

func (b *Button) Keys() []string

Keys returns Button.keys

func (*Button) Label

func (b *Button) Label() string

Label returns Button.label

type Keys

type Keys []string

Keys is a string slice

Jump to

Keyboard shortcuts

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