Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
.
- objGetPropertyByName :: ToJSString name => Object -> name -> MutableJSArray -> JSM JSVal
- objGetPropertyAtIndex :: Object -> Index -> MutableJSArray -> JSM JSVal
- objSetPropertyByName :: (ToJSString name, ToJSVal val) => Object -> name -> val -> JSPropertyAttributes -> MutableJSArray -> JSM ()
- objSetPropertyAtIndex :: ToJSVal val => Object -> Index -> val -> MutableJSArray -> JSM ()
Getting Property Values
:: 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.
:: 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
:: (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.
:: 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.