Module
Text.Markdown.SlamDown.Halogen.Component.State
- Package
- purescript-markdown-halogen
- Repository
- slamdata/purescript-markdown-halogen
#FormFieldValue Source
type FormFieldValue = FormFieldP Identity#SlamDownFormDesc Source
type SlamDownFormDesc a = StrMap (FormField a)#SlamDownFormState Source
type SlamDownFormState a = StrMap (FormFieldValue a)#SlamDownStateR Source
type SlamDownStateR a = { document :: SlamDownP a, formState :: SlamDownFormState a }#SlamDownState Source
newtype SlamDownState aThe state of a SlamDown form
Constructors
Instances
Functor SlamDownState(Show a) => Show (SlamDownState a)(Arbitrary a, Ord a) => Arbitrary (SlamDownState a)
#modifyFormState Source
modifyFormState :: forall a. (SlamDownFormState a -> SlamDownFormState a) -> SlamDownState a -> SlamDownState a#getFormFieldValue Source
getFormFieldValue :: forall v. String -> SlamDownState v -> Maybe (FormFieldValue v)Gets the form field value, or the default if none is present.
#formFieldGetDefaultValue Source
formFieldGetDefaultValue :: forall v. FormField v -> Maybe (FormFieldValue v)#emptySlamDownState Source
emptySlamDownState :: forall v. SlamDownState vThe initial empty state of the form, with an empty document.
#syncState Source
syncState :: forall v. Value v => SlamDownP v -> SlamDownFormState v -> SlamDownState v#replaceDocument Source
replaceDocument :: forall v. Value v => SlamDownP v -> SlamDownState v -> SlamDownState v