slider

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: 5 Imported by: 2

Documentation

Index

Constants

View Source
const MDCSliderApi = "mdc.slider.MDCSlider"

Variables

This section is empty.

Functions

This section is empty.

Types

type Continuous

type Continuous struct {
	app.Compo
	base.JsUtil
	Discrete bool
	Id       string
	Range    *InputRange
	// contains filtered or unexported fields
}

func (*Continuous) ActionValue

func (c *Continuous) ActionValue(ctx app.Context, value float64)

func (*Continuous) OnMount

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

func (*Continuous) Render

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

type ContinuousRange

type ContinuousRange struct {
	app.Compo
	base.JsUtil
	Id       string
	Discrete bool
	RangeOne *InputRange
	RangeTwo *InputRange
	// contains filtered or unexported fields
}

func (*ContinuousRange) ActionValue

func (cr *ContinuousRange) ActionValue(ctx app.Context, thumb string, value float64)

func (*ContinuousRange) OnMount

func (cr *ContinuousRange) OnMount(ctx app.Context)

func (*ContinuousRange) Render

func (cr *ContinuousRange) Render() app.UI

type EventType

type EventType string
const MDCSliderChange EventType = "MDCSlider:change"
const MDCSliderValue EventType = "MDCSlider:value"

type InputRange

type InputRange struct {
	app.Compo
	base.JsUtil
	Id    string
	Name  string
	Label string
	Min   float64
	Max   float64
	Value float64
	Step  float64
}

func (*InputRange) OnMount

func (r *InputRange) OnMount(context app.Context)

func (*InputRange) Render

func (r *InputRange) Render() app.UI

Jump to

Keyboard shortcuts

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