olwrapper-0.4.1: An OpenLayers JavaScript Wrapper and Webframework with snaplet-fay

Safe HaskellNone
LanguageHaskell2010

OpenLayers.Html

Contents

Description

 

Synopsis

CONSTANTS

aElement :: [Char] Source

a <a> element

brElement :: [Char] Source

a <br> element

pElement :: [Char] Source

a <p> element

divElement :: [Char] Source

a <div> element

formElement :: [Char] Source

a <form> element

buttonElement :: [Char] Source

a <input> element

inputTextElement :: [Char] Source

a <input> element of type text

inputCheckboxElement :: [Char] Source

a <input> element of type checkbox

FUNCTIONS

ADD FUNCTIONS

addTextToHtml Source

Arguments

:: String

text to add

-> String

typ of the html element to add

-> String

id of the html element to append

-> Fay () 

add a new html element to an existing and fill the content of the new with text

addButton Source

Arguments

:: String

text for the button

-> String

id of the html element to append

-> Fay ()

method for the button

-> Fay () 

add a new button (type=submit) to an existing html element with a text and a method

addCheckbox Source

Arguments

:: String

id for the new checkbox

-> String

id of the html element to append

-> String

text for the checkbox

-> Fay () 

add a new checkbox to an existing html element with a text and a method

addDiv Source

Arguments

:: String

id of the html element to append

-> String

id for the new div-element

-> String

text for the div-element

-> Fay () 

add a div-element with a text

addElement Source

Arguments

:: String

id of the html element to append

-> String

element type (f. e. "div")

-> String

id for the new element

-> Fay () 

add a custom html element

addForm Source

Arguments

:: String

id of the html element to append

-> String

id for the new form-element

-> Fay JQuery 

add a new form-element

addInput Source

Arguments

:: String

label of the element

-> String

id of the html element to append

-> String

id for the new input element

-> String

default value for the text field

-> Fay () 

add a new input element of type text

addBreakline Source

Arguments

:: String

id of the html element to append

-> Fay () 

add a new breakline

OTHER FUNCTIONS

getInputInt Source

Arguments

:: String

id of the html element

-> Fay Integer 

get the integer value of an element

selectId Source

Arguments

:: String

id of the html element

-> Fay JQuery 

select an element due to his id

setEventToHtml Source

Arguments

:: String

id of the html element

-> Fay Text

method to generate text (f. e. "getZoom")

-> Fay JQuery 

in combination f. e. with "addMapWindowEvent" to change the html element content

showString :: String -> Text Source

String to Text with FFI

showDouble :: Double -> Text Source

Double to Text with FFI

toInt :: Text -> Fay Integer Source

Text to Fay Integer with FFI

toInt' :: String -> Integer Source

String to Integer with FFI

ADAPTED FAY.JQUERY FUNCTIONS

onClick' Source

Arguments

:: Fay ()

method for the button

-> JQuery

button element

-> Fay JQuery 

adapted from JQuery's "select"

select' Source

Arguments

:: String

html element to select (see CONSTANTS)

-> Fay JQuery 

adapted from JQuery's "select"

setHtml' Source

Arguments

:: String

value for inner html

-> JQuery

html element to set

-> Fay JQuery 

adapted from JQuery's "setHtml"

setAttr' Source

Arguments

:: String

parameter to set (f.e. "id")

-> String

value for the parameter

-> JQuery

html element to set

-> Fay JQuery 

adapted from setAttr