checkbox

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const SVG = `<svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24">` +
	`<path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path></svg>`

Variables

Functions

func Background added in v0.2.2

func Background() app.HTMLDiv

Types

type Checkbox

type Checkbox struct {
	app.Compo
	base.JsUtil
	autoinit.AutoInit
	Id            string
	Checked       bool
	Disabled      bool
	Indeterminate bool
	Callback      func(input app.HTMLInput)
	// contains filtered or unexported fields
}

func (*Checkbox) LabelID added in v0.2.2

func (c *Checkbox) LabelID() string

func (*Checkbox) MdcAPI added in v0.2.2

func (c *Checkbox) MdcAPI() app.Value

func (*Checkbox) OnMount

func (c *Checkbox) OnMount(ctx app.Context)

func (*Checkbox) Render

func (c *Checkbox) Render() app.UI

Jump to

Keyboard shortcuts

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