Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 Source #
Nothing
urlJqueryJs :: a -> Either (Route a) Text Source #
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 Source #
The jQuery UI 1.8 Javascript file.
urlJqueryUiCss :: a -> Either (Route a) Text Source #
The jQuery UI 1.8 CSS file; defaults to cupertino theme.
urlJqueryUiDateTimePicker :: a -> Either (Route a) Text Source #
jQuery UI time picker add-on.
jqueryDayField :: (RenderMessage site FormMessage, YesodJquery site) => JqueryDaySettings -> Field (HandlerFor site) Day Source #
jqueryDatePickerDayField :: (RenderMessage site FormMessage, YesodJquery site) => JqueryDaySettings -> Field (HandlerFor site) Day Source #
Use jQuery's datepicker as the underlying implementation.
Since 1.4.3
jqueryAutocompleteField :: (RenderMessage site FormMessage, YesodJquery site) => Route site -> Field (HandlerFor site) Text Source #
jqueryAutocompleteField' Source #
:: (RenderMessage site FormMessage, YesodJquery site) | |
=> Int | autocomplete minimum length |
-> Route site | |
-> Field (HandlerFor site) Text |
googleHostedJqueryUiCss :: Text -> Text Source #
Gets the Google hosted jQuery UI 1.8 CSS file with the given theme.
data JqueryDaySettings Source #
JqueryDaySettings | |
|
Instances
Default JqueryDaySettings Source # | |
Defined in Yesod.Form.Jquery |
A class for types with a default value.
Nothing