reflex-dom-contrib-0.4.1: A playground for experimenting with infrastructure and common code for reflex applications

Safe HaskellNone
LanguageHaskell2010

Reflex.Dom.Contrib.Widgets.ButtonGroup

Synopsis

Documentation

radioGroup Source

Arguments

:: (MonadWidget t m, Eq a, Show a) 
=> Dynamic t String

The name for the button group (different groups should be given different names)

-> Dynamic t [(a, String)]

Selectable values and their string labels

-> GWidget t m (Maybe a)

Radio group in a GWidget interface (function from WidgetConfig to HtmlWidget )

A group of radio buttons in a table layout

bootstrapButtonGroup Source

Arguments

:: (MonadWidget t m, Eq a, Show a) 
=> Dynamic t [(a, String)]

Selectable values and their string labels

-> GWidget t m (Maybe a)

Button group in a GWidget interface (function from WidgetConfig to HtmlWidget )

Produce a bootstrap button group

buttonGroup Source

Arguments

:: (MonadWidget t m, Eq a, Show a) 
=> String

Html tag name for the container (normally "div" or "table")

-> (Maybe Int -> Dynamic t a -> Dynamic t Bool -> m (Event t (), Dynamic t Bool))

WidgetMonadic action for rendering a single button, returning click events and focus state

-> Dynamic t (Map Int a)

Mapping from indices (used for layout order) to result elements

-> GWidget t m (Maybe a)

Returning a GWidget (function from WidgetConfig to HtmlWidget)

A general container for collecting drawable buttons into a group with one selection, under the HtmlWidget interface