yesod-form-multi-1.6.0: Multi-input form handling for Yesod Web Framework

Safe HaskellNone
LanguageHaskell98

Yesod.Form.MultiInput

Description

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

Documentation

data MultiSettings site Source #

Constructors

MultiSettings 

Fields

data MultiView site Source #

Constructors

MultiView 

Fields

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