switchm

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: 0

Documentation

Index

Constants

View Source
const SwitchOffSvg = `<svg class="mdc-switch__icon mdc-switch__icon--off" viewBox="0 0 24 24">` +
	`<path d="M20 13H4v-2h16v2z" /></svg>`
View Source
const SwitchOnSvg = `<svg class="mdc-switch__icon mdc-switch__icon--on" viewBox="0 0 24 24">` +
	`<path d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"/></svg>`

Variables

This section is empty.

Functions

This section is empty.

Types

type MDCSwitch

type MDCSwitch struct {
	app.Compo
	base.JsUtil
	autoinit.AutoInit
	Selected bool
	Disabled bool
	Callback func(ctx app.Context, mdcSwitch app.Value)
	// contains filtered or unexported fields
}

func (*MDCSwitch) OnMount

func (s *MDCSwitch) OnMount(ctx app.Context)

func (*MDCSwitch) Render

func (s *MDCSwitch) Render() app.UI

Jump to

Keyboard shortcuts

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