button

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package button wraps Bootstrap Button component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	*bs.Component
}

Button represents Bootstrap button component.

func Attach

func Attach(id string) *Button

Attach binds a Bootstrap button on page

func New

func New(style bs.Style, content ...interface{}) *Button

New returns a button with <button> tag.

func (*Button) OnClick

func (btn *Button) OnClick(fn func(*Button, *js.Event)) *Button

OnClick add click callback.

Jump to

Keyboard shortcuts

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