yesod-tableview-0.2.1: Table view for Yesod applications

Stabilityexperimental
MaintainerErtugrul Soeylemez <es@ertes.de>

Yesod.TableView.NumEntriesForm

Description

Little form for selecting the number of entries to show.

Synopsis

Documentation

runNumEntriesForm :: Bool -> String -> [Int] -> Int -> (Int -> Route s) -> GHandler sub s (GWidget sub s ())Source

Run the number of entries form with the given prompt, options, initial value and route function. If POST data is present, redirects to the given route with the specified limit, otherwise just returns the form widget.