| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Miso.UI.Slider
Synopsis
- data SliderProps action = SliderProps {
- sliderMin :: MisoString
- sliderMax :: MisoString
- sliderStep :: MisoString
- sliderValue :: MisoString
- sliderPercent :: MisoString
- sliderClasses :: [MisoString]
- sliderAttrs :: [Attribute action]
- defaultSliderProps :: SliderProps action
- slider_ :: SliderProps action -> View model action
- sliderSample :: (DOMRef -> action) -> (DOMRef -> action) -> View model action
- sliderCodeSample :: View model action
- sliderPropsApi :: View model action
Props
data SliderProps action Source #
Props for slider_
Constructors
| SliderProps | |
Fields
| |
defaultSliderProps :: SliderProps action Source #
Smart constructor: 0-100, starts at 50
Views
slider_ :: SliderProps action -> View model action Source #
Slider, driven by SliderProps
Samples
sliderSample :: (DOMRef -> action) -> (DOMRef -> action) -> View model action Source #
Takes the app's slider init/destroy hooks (basecoat's JS keeps the track fill in sync while dragging)
sliderCodeSample :: View model action Source #
sliderPropsApi :: View model action Source #