Yesod.Form.Jquery

yesod-form-1.4.12: Form handling support for Yesod Web Framework

Safe Haskell | None
Language | Haskell98

Yesod.Form.Jquery

Description

Some fields spiced up with jQuery UI.

Synopsis

- class YesodJquery a where
- jqueryDayField :: (RenderMessage site FormMessage, YesodJquery site) => JqueryDaySettings -> Field (HandlerT site IO) Day
- jqueryDatePickerDayField :: (RenderMessage site FormMessage, YesodJquery site) => JqueryDaySettings -> Field (HandlerT site IO) Day
- jqueryAutocompleteField :: (RenderMessage site FormMessage, YesodJquery site) => Route site -> Field (HandlerT site IO) Text
- jqueryAutocompleteField' :: (RenderMessage site FormMessage, YesodJquery site) => Int -> Route site -> Field (HandlerT site IO) Text
- googleHostedJqueryUiCss :: Text -> Text
- data JqueryDaySettings = JqueryDaySettings {
  - jdsChangeMonth :: Bool
  - jdsChangeYear :: Bool
  - jdsYearRange :: String
  - jdsNumberOfMonths :: Either Int (Int, Int)
  }
- class Default a where
  - def :: a

# Documentation

class YesodJquery a where #

Methods

urlJqueryJs :: a -> Either (Route a) Text #

The jQuery Javascript file. Note that in upgrades to this library, the version of jQuery referenced, or where it is downloaded from, may be changed without warning. If you are relying on a specific version of jQuery, you should give an explicit URL instead of relying on the default value.

Currently, the default value is jQuery 1.7 from Google's CDN.

urlJqueryUiJs :: a -> Either (Route a) Text #

The jQuery UI 1.8 Javascript file.

urlJqueryUiCss :: a -> Either (Route a) Text #

The jQuery UI 1.8 CSS file; defaults to cupertino theme.

urlJqueryUiDateTimePicker :: a -> Either (Route a) Text #

jQuery UI time picker add-on.

jqueryDayField :: (RenderMessage site FormMessage, YesodJquery site) => JqueryDaySettings -> Field (HandlerT site IO) Day #

jqueryDatePickerDayField :: (RenderMessage site FormMessage, YesodJquery site) => JqueryDaySettings -> Field (HandlerT site IO) Day #

Use jQuery's datepicker as the underlying implementation.

Since 1.4.3

jqueryAutocompleteField :: (RenderMessage site FormMessage, YesodJquery site) => Route site -> Field (HandlerT site IO) Text #

jqueryAutocompleteField' #

Arguments

:: (RenderMessage site FormMessage, YesodJquery site) |
=> Int | autocomplete minimum length
-> Route site |
-> Field (HandlerT site IO) Text |

googleHostedJqueryUiCss :: Text -> Text #

Gets the Google hosted jQuery UI 1.8 CSS file with the given theme.

data JqueryDaySettings #

Constructors

JqueryDaySettings |
Fields jdsChangeMonth :: Bool jdsChangeYear :: Bool jdsYearRange :: String jdsNumberOfMonths :: Either Int (Int, Int)

Instances

Default JqueryDaySettings # |
Methods def :: JqueryDaySettings #

class Default a where #

A class for types with a default value.

Minimal complete definition

Nothing

Instances

Default Double |
Methods def :: Double #
Default Float |
Methods def :: Float #
Default Int |
Methods def :: Int #
Default Int8 |
Methods def :: Int8 #
Default Int16 |
Methods def :: Int16 #
Default Int32 |
Methods def :: Int32 #
Default Int64 |
Methods def :: Int64 #
Default Integer |
Methods def :: Integer #
Default Ordering |
Methods def :: Ordering #
Default Word |
Methods def :: Word #
Default Word8 |
Methods def :: Word8 #
Default Word16 |
Methods def :: Word16 #
Default Word32 |
Methods def :: Word32 #
Default Word64 |
Methods def :: Word64 #
Default () |
Methods def :: () #
Default CShort |
Methods def :: CShort #
Default CUShort |
Methods def :: CUShort #
Default CInt |
Methods def :: CInt #
Default CUInt |
Methods def :: CUInt #
Default CLong |
Methods def :: CLong #
Default CULong |
Methods def :: CULong #
Default CLLong |
Methods def :: CLLong #
Default CULLong |
Methods def :: CULLong #
Default CFloat |
Methods def :: CFloat #
Default CDouble |
Methods def :: CDouble #
Default CPtrdiff |
Methods def :: CPtrdiff #
Default CSize |
Methods def :: CSize #
Default CSigAtomic |
Methods def :: CSigAtomic #
Default CClock |
Methods def :: CClock #
Default CTime |
Methods def :: CTime #
Default CUSeconds |
Methods def :: CUSeconds #
Default CSUSeconds |
Methods def :: CSUSeconds #
Default CIntPtr |
Methods def :: CIntPtr #
Default CUIntPtr |
Methods def :: CUIntPtr #
Default CIntMax |
Methods def :: CIntMax #
Default CUIntMax |
Methods def :: CUIntMax #
Default All |
Methods def :: All #
Default Any |
Methods def :: Any #
Default JqueryDaySettings # |
Methods def :: JqueryDaySettings #
Default [a] |
Methods def :: [a] #
Default (Maybe a) |
Methods def :: Maybe a #
Integral a => Default (Ratio a) |
Methods def :: Ratio a #
Default a => Default (IO a) |
Methods def :: IO a #
(Default a, RealFloat a) => Default (Complex a) |
Methods def :: Complex a #
Default a => Default (Dual a) |
Methods def :: Dual a #
Default (Endo a) |
Methods def :: Endo a #
Num a => Default (Sum a) |
Methods def :: Sum a #
Num a => Default (Product a) |
Methods def :: Product a #
Default (First a) |
Methods def :: First a #
Default (Last a) |
Methods def :: Last a #
Default r => Default (e -> r) |
Methods def :: e -> r #
(Default a, Default b) => Default (a, b) |
Methods def :: (a, b) #
(Default a, Default b, Default c) => Default (a, b, c) |
Methods def :: (a, b, c) #
(Default a, Default b, Default c, Default d) => Default (a, b, c, d) |
Methods def :: (a, b, c, d) #
(Default a, Default b, Default c, Default d, Default e) => Default (a, b, c, d, e) |
Methods def :: (a, b, c, d, e) #
(Default a, Default b, Default c, Default d, Default e, Default f) => Default (a, b, c, d, e, f) |
Methods def :: (a, b, c, d, e, f) #
(Default a, Default b, Default c, Default d, Default e, Default f, Default g) => Default (a, b, c, d, e, f, g) |
Methods def :: (a, b, c, d, e, f, g) #