Appspresso
Contact us   |
  • English
  • ABOUT
    • Overview
    • License
    • Roadmap
  • SHOWCASE
    • Featured Apps
    • Appspresso Features
    • Show off your app
  • DOWNLOAD
    • Download Appspresso
    • 3rd party libraries & frameworks
  • DEVELOPER CENTER
    • Getting Started
    • Tutorials
    • API Reference
    • API Samples
    • Appspresso Plug-in Development Kit
    • Google Groups

Interface AxDef

Interface Summary
Constructor Attributes Constructor Name and Description
 
AxDef(target)
This class provides helper methods to define/decorate javascript object.

Method Summary

Method Attributes Method Name and Description
 
constant(name, value)
define a constant property.
 
end()
end of def.
 
method(name, func)
define a method.
 
mixin(obj)
merge all properties(and methods) from another object.
 
ns(name, parent)
define a namespace.
 
property(name, getter, setter)
define a read/write property.

Interface Detail

AxDef(target)
This class provides helper methods to define/decorate javascript object. use ax.def() to create an instance of this class.
Parameters:
{object} target
(optional)
See:
ax.def

Method Detail

  • {AxDef} constant(name, value)
    define a constant property.
    Parameters:
    {string} name
    {*} value
    Returns:
    {AxDef}
  • {object} end()
    end of def.
    Returns:
    {object} a defined/decorated target object
  • {AxDef} method(name, func)
    define a method.
    Parameters:
    {string} name
    {function} func
    Returns:
    {AxDef}
  • {AxDef} mixin(obj)
    merge all properties(and methods) from another object.
    Parameters:
    {object} obj
    Returns:
    {AxDef}
  • {AxDef} ns(name, parent)
    define a namespace.
    Parameters:
    {string} name
    (period(.)-separated names)
    {object} parent
    (optional. default: "window")
    Returns:
    {AxDef}
  • {AxDef} property(name, getter, setter)
    define a read/write property.
    Parameters:
    {string} name
    {function} getter
    null for no getter
    {function} setter
    null for no setter
    Returns:
    {AxDef}

    API Reference

    • Deviceapis
    • Devicestatus
    • Device Interaction
    • Contact
    • Accelerometer
    • Orientation
    • Geolocation
    • Camera
    • Messaging
    • Filesystem
    • Appspresso
      • ax
      • AxDef
      • AxPlugin
      • AxRequest
      • ax.bridge
      • ax.console
      • ax.util
    • Appspresso Extension
      • ax.ext.admob
      • ax.ext.android
      • ax.ext.contact
      • ax.ext.ios
      • ax.ext.ga
      • ax.ext.media
      • ax.ext.net
      • ax.ext.ui
      • ax.ext.zip
RSS
Twitter
© 2011 Appspresso.com . powered by Wordpress