Minor documentation updates

This commit is contained in:
Francisco Vallarino 2021-09-20 19:36:16 -03:00
parent 3d1c9445ab
commit 19a546e1ff
4 changed files with 8 additions and 9 deletions

View File

@ -23,7 +23,6 @@ module Monomer.Core.Combinators where
import Control.Lens (ALens') import Control.Lens (ALens')
import Data.Text (Text) import Data.Text (Text)
import Monomer.Common
import Monomer.Core.StyleTypes import Monomer.Core.StyleTypes
import Monomer.Core.WidgetTypes import Monomer.Core.WidgetTypes
import Monomer.Event.Types import Monomer.Event.Types

View File

@ -50,15 +50,15 @@ Configuration options for button:
- 'ellipsis': if ellipsis should be used for overflown text. - 'ellipsis': if ellipsis should be used for overflown text.
- 'multiline': if text may be split in multiple lines. - 'multiline': if text may be split in multiple lines.
- 'maxLines': maximum number of text lines to show. - '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.
- 'onFocus': event to raise when focus is received. - 'onFocus': event to raise when focus is received.
- 'onFocusReq': 'WidgetRequest' to generate when focus is received. - 'onFocusReq': 'WidgetRequest' to generate when focus is received.
- 'onBlur': event to raise when focus is lost. - 'onBlur': event to raise when focus is lost.
- 'onBlurReq': 'WidgetRequest' to generate when focus is lost. - 'onBlurReq': 'WidgetRequest' to generate when focus is lost.
- 'onClick': event to raise when button is clicked. - 'onClick': event to raise when button is clicked.
- 'onClickReq': 'WidgetRequest' to generate when button is clicked. - 'onClickReq': 'WidgetRequest' to generate when button is clicked.
- '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.
-} -}
data ButtonCfg s e = ButtonCfg { data ButtonCfg s e = ButtonCfg {
_btnButtonType :: Maybe ButtonType, _btnButtonType :: Maybe ButtonType,

View File

@ -46,15 +46,15 @@ Configuration options for externalLink:
- 'ellipsis': if ellipsis should be used for overflown text. - 'ellipsis': if ellipsis should be used for overflown text.
- 'multiline': if text may be split in multiple lines. - 'multiline': if text may be split in multiple lines.
- 'maxLines': maximum number of text lines to show. - '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.
- 'onFocus': event to raise when focus is received. - 'onFocus': event to raise when focus is received.
- 'onFocusReq': 'WidgetRequest' to generate when focus is received. - 'onFocusReq': 'WidgetRequest' to generate when focus is received.
- 'onBlur': event to raise when focus is lost. - 'onBlur': event to raise when focus is lost.
- 'onBlurReq': 'WidgetRequest' to generate when focus is lost. - 'onBlurReq': 'WidgetRequest' to generate when focus is lost.
- 'onClick': event to raise when button is clicked. - 'onClick': event to raise when button is clicked.
- 'onClickReq': 'WidgetRequest' to generate when button is clicked. - 'onClickReq': 'WidgetRequest' to generate when button is clicked.
- '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.
-} -}
data ExternalLinkCfg s e = ExternalLinkCfg { data ExternalLinkCfg s e = ExternalLinkCfg {
_elcLabelCfg :: LabelCfg s e, _elcLabelCfg :: LabelCfg s e,

View File

@ -133,8 +133,8 @@ instance CmbResizeFactorDim (LabelCfg s e) where
labelCurrentStyle labelCurrentStyle
:: (WidgetEnv s e -> WidgetNode s e -> StyleState) :: (WidgetEnv s e -> WidgetNode s e -> StyleState)
-> LabelCfg s e -> LabelCfg s e
labelCurrentStyle style = def { labelCurrentStyle styleFn = def {
_lscCurrentStyle = Just style _lscCurrentStyle = Just styleFn
} }
data LabelState = LabelState { data LabelState = LabelState {