| Copyright | (c) 2018 Francisco Vallarino |
|---|---|
| License | BSD-3-Clause (see the LICENSE file) |
| Maintainer | fjvallarino@gmail.com |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Monomer.Widgets.Containers.Base.LabeledItem
Description
Container for items with an associated clickable label. Mainly used with radio and checkbox.
For usage examples, see:
Synopsis
- labeledItem :: WidgetEvent e => WidgetType -> RectSide -> Maybe Double -> Text -> LabelCfg s e -> WidgetNode s e -> WidgetNode s e
Documentation
Arguments
| :: WidgetEvent e | |
| => WidgetType | The |
| -> RectSide | The side of the label. |
| -> Maybe Double | The child spacing. |
| -> Text | The caption. |
| -> LabelCfg s e | The config options. |
| -> WidgetNode s e | The child node. |
| -> WidgetNode s e | The created stack. |
Creates a stack with a label and the provided widget, passing to this widget all the click events received. Positioning is configurable.