| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Reflex.Material.Common
- class MdClassText a where
- class MdHasCustom a where
- addCustom :: Text -> Maybe Text -> Maybe Text
- data MdRole
- class MdHasRole a where
- primary :: MdHasRole a => a -> a
- accent :: MdHasRole a => a -> a
- data MdRaised = MdRaised
- class MdHasRaised a where
- data MdDark = MdDark
- class MdHasDark a where
- data MdActive = MdActive
- class MdHasActive a where
- data MdDisabled = MdDisabled
- class MdHasDisabled a where
- data MdSize
- class MdHasSize a where
- mini :: MdHasSize a => a -> a
- tiny :: MdHasSize a => a -> a
- small :: MdHasSize a => a -> a
- medium :: MdHasSize a => a -> a
- large :: MdHasSize a => a -> a
- big :: MdHasSize a => a -> a
- huge :: MdHasSize a => a -> a
- massive :: MdHasSize a => a -> a
- data MdDensity
- class MdHasDensity a where
- compact :: MdHasDensity a => a -> a
- dense :: MdHasDensity a => a -> a
- tshow :: Show a => a -> Text
Documentation
class MdClassText a where #
A type class for converting data types into appropriate MDC class text.
Minimal complete definition
Instances
| MdClassText MdDensity # | |
| MdClassText MdSize # | |
| MdClassText MdDisabled # | |
| MdClassText MdActive # | |
| MdClassText MdDark # | |
| MdClassText MdRaised # | |
| MdClassText MdRole # | |
| MdClassText MdBackground # | |
| MdClassText MdFullwidth # | |
| (MdClassText a, MdClassText b) => MdClassText (Either a b) # | Passthrough instance for Either |
class MdHasCustom a where #
Minimal complete definition
Methods
IMPORTANT: Implementations of this function should use the accompanying
addCustom function to make sure that new values are added on and don't
overwrite anything that was already there.
Instances
addCustom :: Text -> Maybe Text -> Maybe Text #
Helper function for adding a class item to a custom class field.
Minimal complete definition
Constructors
| MdRaised |
class MdHasRaised a where #
Minimal complete definition
Instances
| MdHasRaised MdButton # | |
| (Reflex t, MdHasRaised a) => MdHasRaised (Dynamic t a) # | |
Constructors
| MdDark |
Minimal complete definition
Constructors
| MdActive |
class MdHasActive a where #
Minimal complete definition
Instances
| MdHasActive MdButton # | |
| (Reflex t, MdHasActive a) => MdHasActive (Dynamic t a) # | |
class MdHasDisabled a where #
Minimal complete definition
Instances
| MdHasDisabled MdIconToggle # | |
| MdHasDisabled MdTextfield # | |
| MdHasDisabled MdButton # | |
| (Reflex t, MdHasDisabled a) => MdHasDisabled (Dynamic t a) # | |
Minimal complete definition
class MdHasDensity a where #
Minimal complete definition
Methods
mdSetDensity :: MdDensity -> a -> a #
Instances
| MdHasDensity MdTextfield # | |
| MdHasDensity MdButton # | |
| (Reflex t, MdHasDensity a) => MdHasDensity (Dynamic t a) # | |
compact :: MdHasDensity a => a -> a #
dense :: MdHasDensity a => a -> a #