monomer-1.0.0.0: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Widgets.Singles.LabeledCheckbox

Description

Labeled checkbox, used for interacting with boolean values with an associated clickable label.

Configs:

  • Text related
  • textLeft: places the label to the left of the checkbox.
  • textRight: places the label to the right of the checkbox.
  • textTop: places the label to the top of the checkbox.
  • textBottom: places the label to the bottom of the checkbox.
  • trimSpaces: whether to remove leading/trailing spaces in the caption.
  • ellipsis: if ellipsis should be used for overflown text.
  • multiline: if text may be split in multiple lines.
  • maxLines: maximum number of text lines to show.
  • resizeFactor: flexibility to have more or less spaced assigned.
  • resizeFactorW: flexibility to have more or less horizontal spaced assigned.
  • resizeFactorH: flexibility to have more or less vertical spaced assigned.
  • Checkbox related
  • checkboxMark: the type of checkbox mark.
  • width: sets the max width/height of the checkbox.
  • onFocus: event to raise when focus is received.
  • onFocusReq: WidgetRequest to generate when focus is received.
  • onBlur: event to raise when focus is lost.
  • onBlurReq: WidgetRequest to generate when focus is lost.
  • onChange: event to raise when the value changes/is clicked.
  • onChangeReq: WidgetRequest to generate when the value changes/is clicked.
Synopsis

Documentation

labeledCheckbox :: WidgetEvent e => Text -> ALens' s Bool -> WidgetNode s e Source #

Creates a labeled checkbox using the given lens.

labeledCheckbox_ :: WidgetEvent e => Text -> ALens' s Bool -> [LabeledCheckboxCfg s e] -> WidgetNode s e Source #

Creates a labeled checkbox using the given lens. Accepts config.

labeledCheckboxV :: WidgetEvent e => Text -> Bool -> (Bool -> e) -> WidgetNode s e Source #

Creates a labeled checkbox using the given value and onChange event handler.

labeledCheckboxV_ :: WidgetEvent e => Text -> Bool -> (Bool -> e) -> [LabeledCheckboxCfg s e] -> WidgetNode s e Source #

Creates a labeled checkbox using the given value and onChange event handler. Accepts config.

labeledCheckboxD_ :: WidgetEvent e => Text -> WidgetData s Bool -> [LabeledCheckboxCfg s e] -> WidgetNode s e Source #

Creates a labeled checkbox providing a WidgetData instance and config.