button

package
v0.0.0-...-34721a0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Primary = iota + 1
	Success
	Info
	Warning
	Danger
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	Id     string
	Title  template.HTML
	Type   template.HTML
	Action template.JS
	Style  template.CSS
}

func New

func New() *Button

func (*Button) Generate

func (btn *Button) Generate() template.HTML

func (*Button) SetStyle

func (btn *Button) SetStyle(style template.CSS) *Button

func (*Button) SetTitle

func (btn *Button) SetTitle(title template.HTML) *Button

func (*Button) SetType

func (btn *Button) SetType(typ int) *Button

Jump to

Keyboard shortcuts

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