Module

Halogen.Datepicker.Internal.Elements

Package
purescript-halogen-datepicker
Repository
slamdata/purescript-halogen-datepicker

#textElement Source

textElement :: forall i p. Config -> { text :: String } -> HTML p i

#PreNumConfig Source

type PreNumConfig a = { placeholder :: String, range :: Range a, title :: String }

#PreChoiceConfig Source

type PreChoiceConfig a = { title :: String, values :: NonEmpty Array a }

#toNumConf Source

toNumConf :: forall a. Config -> PreNumConfig a -> Config a

#OptionalUpdate Source

type OptionalUpdate a = a -> Maybe a

#renderNum Source

renderNum :: forall queryVal parentQuery childQuery cmd slot m. ChildPath (Query Int) childQuery cmd slot -> (OptionalUpdate queryVal -> Action parentQuery) -> (cmd -> Int -> OptionalUpdate queryVal) -> cmd -> Config -> PreNumConfig Int -> ParentHTML parentQuery childQuery slot m

#toChoiceConf Source

toChoiceConf :: forall a. Config -> PreChoiceConfig a -> Config a

#renderChoice Source

renderChoice :: forall queryVal parentQuery childQuery cmd slot m a. BoundedEnum a => Show a => ChildPath (Query (Maybe Int)) childQuery cmd slot -> (OptionalUpdate queryVal -> Action parentQuery) -> (cmd -> Int -> OptionalUpdate queryVal) -> cmd -> Config -> PreChoiceConfig (Maybe a) -> ParentHTML parentQuery childQuery slot m