Global

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

QuickNav

Fields


Version:
  • 7.1.0

Module usage

See JET Module Loading for an overview of module usage within JET.

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

Fields

revision :string

JET source code revision number

version :string

JET version numberr

Methods

ajax(settings) → {Object}

Master Ajax entry point for all oj.Model and oj.Collection server interactions, when they are using the default sync implementations. oj.ajax passes through to jQuery ajax by default. See http://api.jquery.com/jquery.ajax/ for expected parameters and return value.
Parameters:
Name Type Argument Description
settings Object <optional>
optional ajax settings
Since:
  • 1.0.0
Returns:
xhr object
Type
Object

assembleObject(value, fields) → {object}

Helper function that constructs an object out from value based on fields.
Parameters:
Name Type Description
value object The original object to construct the return object from.
fields Array An array of property names whose values should be included in the final contructed return object.
Returns:
the object that contains all the properties defined in fields array, the corresponding property value is obtained from value.
Type
object

defineTrackableProperty(target, name, optional)

Defines a special 'tracked' property on the target object. Mutating the tracked property will cause the DOM produced by the .execute() method to get automatically updated
Parameters:
Name Type Argument Description
target Object an object where the property is defined
name string property name
optional * <optional>
initial value

getThrottlePromise() → {Promise}

Provides a promise for JET's Knockout throttling timeout
Returns:
a promise for JET's Knockout throttling timeout completing or a promise that will be resolved immediately for the case when there is no outstanding throttling timeout
Type
Promise

sync(method, model, options) → {Object}

Master server access method for all models and collections. Replace oj.sync with a new implementation to customize all oj.Model and oj.Collection server interactions
Parameters:
Name Type Argument Description
method string "create", "read", "update", "patch", or "delete"
model oj.Model | oj.Collection Model (or Collection to be read) to be read/saved/deleted/created
options Object <optional>
to control sync
success: called if sync succeeds
error: called if sync fails
others are passed to jQuery
Options that would normally be passed to a customURL callback are also included
Since:
  • 1.0.0
Returns:
xhr object
Type
Object