sunroof-compiler-0.2: Monadic Javascript Compiler

Safe HaskellNone

Language.Sunroof.JS.JQuery

Contents

Description

This module provides parts of the JQuery API (http://api.jquery.com/).

Synopsis

General JQuery API

jQuery :: JSString -> JS t JSObjectSource

Calls the JQuery dollar function. See http://api.jquery.com/jQuery/.

jq :: JSString -> JS t JSObjectSource

Short-hand for jQuery.

DOM

CSS

css :: JSString -> JSObject -> JS t JSStringSource

See .css(propertyName) at http://api.jquery.com/css/.

setCss :: JSString -> JSString -> JSObject -> JS t JSStringSource

See .css(propertyName, value) at http://api.jquery.com/css/.

Attributes

attribute :: JSString -> JSObject -> JS t JSStringSource

See .attr(attributeName) at http://api.jquery.com/attr/. This binding does not have the original Javascript name, because of the attr function.

attr' :: JSString -> JSObject -> JS t JSStringSource

See .attr(attributeName) at http://api.jquery.com/attr/. This binding does not have the original Javascript name, because of the attr function.

setAttr :: JSString -> JSString -> JSObject -> JS t JSStringSource

See .attr(attributeName, value) at http://api.jquery.com/attr/.

Event Handling

Manipulation

clone' :: JSBool -> JSBool -> JSObject -> JS t JSObjectSource

See .clone(withDataAndEvents, deepWithDataAndEvents) at http://api.jquery.com/clone/.