Appspresso
Contact us   |
  • Korean
  • ABOUT
    • Overview
    • License
    • Roadmap
  • SHOWCASE
    • Featured Apps
    • Appspresso Features
    • Show off your app
  • DOWNLOAD
    • Download Appspresso
    • 3rd Party Libraries & Frameworks
  • DEVELOPER CENTER
    • Getting Started
    • FAQ
    • Tutorials
    • API Reference
    • Samples
    • Appspresso PDK
    • Plugin Samples
    • 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
      • DeviceAPIError
      • Deviceapis
      • ErrorCallback
      • Feature
      • PendingOperation
      • SuccessCallback
    • Devicestatus
      • DeviceStatusManager
      • PropertyChangeSuccessCallback
      • PropertyRef
      • WatchOptions
    • DeviceInteraction
      • DeviceInteractionManager
    • Contact
      • AddContactSuccessCallback
      • Address
      • AddressBook
      • AddressBookArraySuccessCallback
      • Contact
      • ContactAddress
      • ContactArraySuccessCallback
      • ContactFilter
      • ContactManager
      • ContactProperties
      • EmailAddress
      • PhoneNumber
    • Accelerometer
      • Acceleration
      • AccelerationOptions
      • AccelerationSuccessCallback
      • Accelerometer
    • Orientation
      • Orientation
      • OrientationOptions
      • OrientationSuccessCallback
      • Rotation
    • Geolocation
    • Camera
      • Camera
      • CameraArraySuccessCallback
      • CameraCaptureSuccessCallback
      • CameraManager
      • CameraOptions
      • CameraPreviewSuccessCallback
    • Messaging
      • FindMessagesSuccessCallback
      • Message
      • MessageFilter
      • MessageSendCallback
      • Messaging
      • OnIncomingMessage
      • UpdateMessageSuccessCallback
    • Filesystem
      • File
      • FileFilter
      • FileOpenSuccessCallback
      • FileStream
      • FileSystemListSuccessCallback
      • FileSystemManager
      • FileSystemSuccessCallback
      • ReadFileAsStringSuccessCallback
    • 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
    • Plugin (iOS)
    • Plugin (Android)
RSS
Twitter
© 2011 Appspresso.com . powered by Wordpress