Module

Specular.Dom.Widgets.Select

Package
purescript-specular
Repository
restaumatic/purescript-specular

#SelectConfig Source

type SelectConfig a = { attributes :: WeakDynamic Attrs, display :: a -> String, initialValueIndex :: Int, options :: Array a }

#selectInput Source

selectInput :: forall m a. MonadWidget m => SelectConfig a -> m (Dynamic a)

A <select> element with static list of options. The returned Dynamic represents the currently selected value.

#SelectViewConfig Source

type SelectViewConfig a = { attributes :: WeakDynamic Attrs, display :: a -> String, options :: Array a }

#selectView Source

selectView :: forall m a. MonadWidget m => Eq a => SelectViewConfig a -> WeakDynamic a -> m (Event a)

A <select> element with static list of options.