htmlbutton

package
v0.0.0-...-6d534fa Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package htmlbutton handle html button(group)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMLButton

type HTMLButton struct {
	KeyCode    string
	IDBase     string
	ButtonText []string // state count
	ToolTip    string

	ClickFn func(obj interface{}, v *HTMLButton)
	State   int
}

func (*HTMLButton) Disable

func (v *HTMLButton) Disable()

func (*HTMLButton) Enable

func (v *HTMLButton) Enable()

func (*HTMLButton) Hide

func (v *HTMLButton) Hide()

func (HTMLButton) JSFnName

func (v HTMLButton) JSFnName() string

func (HTMLButton) JSID

func (v HTMLButton) JSID() string

func (HTMLButton) MakeHTML

func (v HTMLButton) MakeHTML() string

func (*HTMLButton) MakeJSFn

func (v *HTMLButton) MakeJSFn(obj interface{}) func(this js.Value, args []js.Value) interface{}

func (*HTMLButton) Register

func (v *HTMLButton) Register(obj interface{})

func (*HTMLButton) Show

func (v *HTMLButton) Show()

type HTMLButtonGroup

type HTMLButtonGroup struct {
	Name           string
	ButtonList     []*HTMLButton
	ID2Button      map[string]*HTMLButton
	KeyCode2Button map[string]*HTMLButton
}

func NewButtonGroup

func NewButtonGroup(name string, buttons []*HTMLButton) *HTMLButtonGroup

func (*HTMLButtonGroup) GetByIDBase

func (hbl *HTMLButtonGroup) GetByIDBase(idb string) *HTMLButton

func (*HTMLButtonGroup) GetByKeyCode

func (hbl *HTMLButtonGroup) GetByKeyCode(kcode string) *HTMLButton

func (*HTMLButtonGroup) MakeHTML

func (hbl *HTMLButtonGroup) MakeHTML(obj interface{}) string

func (*HTMLButtonGroup) Register

func (hbl *HTMLButtonGroup) Register(obj interface{})

Jump to

Keyboard shortcuts

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