reflex-localize-dom-1.1.0.0: Helper widgets for reflex-localize

Copyright(c) 2019-2020 ATUM SOLUTIONS AG
LicenseMIT
Maintainerncrashed@protonmail.com
Stabilityunstable
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Reflex.Localize.Dom

Contents

Description

Dom helpers to show localized

Synopsis

Documentation

localizedText :: (MonadLocalized t m, LocalizedPrint a, PostBuild t m, DomBuilder t m) => a -> m () Source #

Same as text, but changes when language is changed.

localizedTextWith :: (MonadLocalized t m, LocalizedPrint a, PostBuild t m, DomBuilder t m) => (Text -> Text) -> a -> m () Source #

Same as localizedText but transforms text before displaying.

localizedTextLower :: (MonadLocalized t m, LocalizedPrint a, PostBuild t m, DomBuilder t m) => a -> m () Source #

Same as localizedText but transforms text to lower case.

localizedTextUpper :: (MonadLocalized t m, LocalizedPrint a, PostBuild t m, DomBuilder t m) => a -> m () Source #

Same as localizedText but transforms text to upper case.

localizedDyn :: (MonadLocalized t m, LocalizedPrint a) => Dynamic t a -> m (Dynamic t Text) Source #

Same as localized, but takes a dynamic value as input

localizedDynText :: (MonadLocalized t m, LocalizedPrint a, PostBuild t m, DomBuilder t m) => Dynamic t a -> m () Source #

Same as localizedText, but takes a dynamic value as input

languageDropdown :: (MonadLocalized t m, MonadFix m, PostBuild t m, MonadHold t m, DomBuilder t m, LocalizedPrint Language, Eq Language, Enum Language, Ord Language, Bounded Language) => m () Source #

Simple dropdown that allows to select a language and set it for current context. The dropdown has `select-lang` CSS class.

Orphan instances

DomBuilder t m => DomBuilder t (LocalizeT t m) Source # 
Instance details

Associated Types

type DomBuilderSpace (LocalizeT t m) :: Type #

Methods

textNode :: TextNodeConfig t -> LocalizeT t m (TextNode (DomBuilderSpace (LocalizeT t m)) t) #

commentNode :: CommentNodeConfig t -> LocalizeT t m (CommentNode (DomBuilderSpace (LocalizeT t m)) t) #

element :: Text -> ElementConfig er t (DomBuilderSpace (LocalizeT t m)) -> LocalizeT t m a -> LocalizeT t m (Element er (DomBuilderSpace (LocalizeT t m)) t, a) #

inputElement :: InputElementConfig er t (DomBuilderSpace (LocalizeT t m)) -> LocalizeT t m (InputElement er (DomBuilderSpace (LocalizeT t m)) t) #

textAreaElement :: TextAreaElementConfig er t (DomBuilderSpace (LocalizeT t m)) -> LocalizeT t m (TextAreaElement er (DomBuilderSpace (LocalizeT t m)) t) #

selectElement :: SelectElementConfig er t (DomBuilderSpace (LocalizeT t m)) -> LocalizeT t m a -> LocalizeT t m (SelectElement er (DomBuilderSpace (LocalizeT t m)) t, a) #

placeRawElement :: RawElement (DomBuilderSpace (LocalizeT t m)) -> LocalizeT t m () #

wrapRawElement :: RawElement (DomBuilderSpace (LocalizeT t m)) -> RawElementConfig er t (DomBuilderSpace (LocalizeT t m)) -> LocalizeT t m (Element er (DomBuilderSpace (LocalizeT t m)) t) #