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

Safe Haskell | None
Language | Haskell2010

Yesod.Form.Jquery

Description

Some fields spiced up with jQuery UI.

Synopsis

- class YesodJquery a where
  - urlJqueryJs :: a -> Either (Route a) Text
  - urlJqueryUiJs :: a -> Either (Route a) Text
  - urlJqueryUiCss :: a -> Either (Route a) Text
  - urlJqueryUiDateTimePicker :: a -> Either (Route a) Text
- jqueryDayField :: (RenderMessage site FormMessage, YesodJquery site) => JqueryDaySettings -> Field (HandlerFor site) Day
- jqueryDatePickerDayField :: (RenderMessage site FormMessage, YesodJquery site) => JqueryDaySettings -> Field (HandlerFor site) Day
- jqueryAutocompleteField :: (RenderMessage site FormMessage, YesodJquery site) => Route site -> Field (HandlerFor site) Text
- jqueryAutocompleteField' :: (RenderMessage site FormMessage, YesodJquery site) => Int -> Route site -> Field (HandlerFor site) 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 #

Minimal complete definition

Nothing

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 (HandlerFor site) Day #

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

Use jQuery's datepicker as the underlying implementation.

Since 1.4.3

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

jqueryAutocompleteField' #

Arguments

:: (RenderMessage site FormMessage, YesodJquery site) |
=> Int | autocomplete minimum length
-> Route site |
-> Field (HandlerFor site) 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

Instances details

Default JqueryDaySettings # |
Instance details Defined in Yesod.Form.Jquery Methods def :: JqueryDaySettings #

class Default a where #

A class for types with a default value.

Minimal complete definition

Nothing

Methods

def :: a #

The default value for this type.

default def :: (Generic a, GDefault (Rep a)) => a #

#### Instances

Instances details

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