Module

YogaStories.Controls

Package
purescript-yoga-stories
Repository
rowtype-yoga/purescript-yoga-stories

#InitialValues Source

class InitialValues :: RowList Type -> Row Type -> Row Type -> Row Type -> Constraintclass InitialValues rl schemaRow from to | rl -> schemaRow from to where

Members

Instances

#RenderControls Source

class RenderControls :: RowList Type -> Row Type -> Row Type -> Constraintclass RenderControls rl schemaRow valuesRow | rl -> schemaRow valuesRow where

Members

Instances

#ToParam Source

class ToParam schema value | schema -> value where

Members

Instances

#ToParams Source

class ToParams :: RowList Type -> Row Type -> Row Type -> Constraintclass ToParams rl schemaRow valuesRow | rl -> schemaRow valuesRow where

Members

Instances

#FromParams Source

class FromParams :: RowList Type -> Row Type -> Row Type -> Constraintclass FromParams rl schemaRow valuesRow | rl -> schemaRow valuesRow where

Members

Instances

#buildInitialValues Source

buildInitialValues :: forall schema rl to. RowToList schema rl => InitialValues rl schema () to => Record schema -> Record to

#valuesToParams Source

valuesToParams :: forall schema rl to. RowToList schema rl => ToParams rl schema to => Record schema -> Record to -> Object String

#paramsToValues Source

paramsToValues :: forall schema rl to. RowToList schema rl => FromParams rl schema to => Record schema -> Object String -> Record to -> Record to

#controlsPanel Source

#GenericToString Source

Re-exports from YogaStories.Controls.Types

#Slider Source

newtype Slider

Constructors

Instances

#Select Source

newtype Select a

Constructors

Instances

#Enum Source

newtype Enum a

Constructors

Instances

#CustomControl Source

newtype CustomControl value

Constructors

Instances

#Color Source

newtype Color

Constructors

Instances

#EnumOptions Source

class EnumOptions a  where

Members

Instances

#slider Source

slider :: { max :: Number, min :: Number, step :: Number, value :: Number } -> Slider

#select Source

select :: forall a. a -> Array a -> Select a

#enum Source

enum :: forall a. EnumOptions a => a -> Enum a

#customControl Source

customControl :: forall value. { fromStr :: String -> Maybe value, render :: value -> (value -> Effect Unit) -> JSX, toStr :: value -> String } -> value -> CustomControl value