jsaddle-0.3.0.0: High level interface for webkit-javascriptcore

Safe HaskellNone
LanguageHaskell2010

Language.Javascript.JSaddle.Properties

Contents

Description

Low level JavaScript object property access. In most cases you should use Language.Javascript.JSaddle.Object instead.

This module is mostly here to implement functions needed to use JSPropRef.

Synopsis

Getting Property Values

objGetPropertyByName Source

Arguments

:: ToJSString name 
=> Object

object to find the property on.

-> name

name of the property.

-> MutableJSArray

exception if one is raised.

-> JSM JSVal

returns the property value.

Get a property value given the object and the name of the property.

objGetPropertyAtIndex Source

Arguments

:: Object

object to find the property on.

-> Index

index of the property.

-> MutableJSArray

exception if one is raised.

-> JSM JSVal

returns the property value.

Get a property value given the object and the index of the property.

Setting Property Values

objSetPropertyByName Source

Arguments

:: (ToJSString name, ToJSVal val) 
=> Object

object to set the property on.

-> name

name of the property.

-> val

new value to set the property to.

-> JSPropertyAttributes

property attributes to give the property.

-> MutableJSArray

exception if one is raised.

-> JSM () 

Set a property value given the object and the name of the property.

objSetPropertyAtIndex Source

Arguments

:: ToJSVal val 
=> Object

object to find property on.

-> Index

index of the property.

-> val

new value to set the property to.

-> MutableJSArray

exception if one is raised.

-> JSM () 

Set a property value given the object and the index of the property.