Module

Text.Markdown.SlamDown.Halogen.Component.State

Package
purescript-markdown-halogen
Repository
slamdata/purescript-markdown-halogen

#SlamDownFormDesc Source

#SlamDownFormState Source

#SlamDownStateR Source

type SlamDownStateR a = { document :: SlamDownP a, formState :: SlamDownFormState a }

#SlamDownState Source

newtype SlamDownState a

The state of a SlamDown form

Constructors

Instances

#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

#emptySlamDownState Source

emptySlamDownState :: forall v. SlamDownState v

The initial empty state of the form, with an empty document.

#syncState Source

#replaceDocument Source