Safe Haskell | None |
---|---|
Language | Haskell98 |
A module providing a means of creating multiple input forms without the need to submit the form to generate a new input field unlike in MassInput.
Synopsis
- data MultiSettings site = MultiSettings {
- msAddClass :: Text
- msErrWidget :: Maybe (Html -> WidgetFor site ())
- data MultiView site = MultiView {}
- mmulti :: (site ~ HandlerSite m, MonadHandler m, RenderMessage site FormMessage) => Field m a -> FieldSettings site -> [a] -> Int -> MultiSettings site -> MForm m (FormResult [a], MultiView site)
- amulti :: (site ~ HandlerSite m, MonadHandler m, RenderMessage site FormMessage) => Field m a -> FieldSettings site -> [a] -> Int -> MultiSettings site -> AForm m [a]
- bs3Settings :: MultiSettings site
- bs4Settings :: MultiSettings site
Documentation
data MultiSettings site Source #
MultiSettings | |
|
mmulti :: (site ~ HandlerSite m, MonadHandler m, RenderMessage site FormMessage) => Field m a -> FieldSettings site -> [a] -> Int -> MultiSettings site -> MForm m (FormResult [a], MultiView site) Source #
Converts a form field into a monadic form containing an arbitrary number of the given fields as specified by the user. Returns a list of results, failing if the length of the list is less than the minimum requested values.
Since: 1.6.0
amulti :: (site ~ HandlerSite m, MonadHandler m, RenderMessage site FormMessage) => Field m a -> FieldSettings site -> [a] -> Int -> MultiSettings site -> AForm m [a] Source #
Applicative equivalent of mmulti
.
Since: 1.6.0
bs3Settings :: MultiSettings site Source #
MultiSettings
for Bootstrap 3.
Since: 1.6.0
bs4Settings :: MultiSettings site Source #
MultiSettings
for Bootstrap 4.
Since: 1.6.0