Members
_isLinkLoadEventAvailable
Returns if the load event is available for link elements
- Source:
_offlinePrimaryKeys
caches the primary keys only
_webkitVersion
Returns major webkit version or null if not webkit
- Source:
addPrimaryKeyDependency
this assumes this._offlinePrimaryKeys has already been fetched
AuthorizationPolicy
AuthorizationPolicyType
UpfrontAuthorizationPolicy
Authorization is asked upfront, immediately after data service is
created / launch of an app.
OnDemandAuthorizationPolicy
Authorization is required when a request fails because of lack of
authorization. This is likely to be a good strategy for DataServices
that offer data to both anonymous and authorized users.
childrenExpression
An FRB expression, that evaluated against content or any of its
children, produces an array of that content's children.
By default it is "children"
- Source:
childrenFromNode
Returns the children of a given node based on childrenExpression
- Source:
collapseAll
Collapses all nodes with children in the tree.
- Source:
collapseNode
Collapses a given node of the tree
- Source:
compiledSyntax :function
The compiled expression, a function, that is used directly for evaluation.
Type:
- function
- Source:
converters :Array.<Converter>
The converters to chain on convert()
Type:
- Array.<Converter>
createDefaultBlueprintForObject
- Deprecated:
- Creates a default object descriptor with all enumerable properties. **Note:** Value type are set to the string default.
- Source:
createDefaultObjectDescriptorForObject
Creates a default object descriptor with all enumerable properties.
**Note:** Value type are set to the string default.
- Source:
data
Tree data model / root
- Source:
data
Data can be any Object[] with any Object structure,
developer will pick right key by binding desired FRB expression.
deserialize
determinate :boolean
Whether `promise` is in a determinate progress sate, meaning that it has
provided a `progress` ratio with its most recent progress event.
Type:
- boolean
- Source:
(nullable) error :Error
The error from the promise, if it was rejected.
Type:
- Error
- Source:
expandAll
Expands all nodes with children in the tree.
- Source:
expandNode
Expands a given node of the tree
- Source:
expression :string
returns Criteria's expression, which is not expected to change after being
initialized
Type:
- string
- Source:
fooCount
Starts with 1 because 1 Foo is declared in serialization as default content for succession1
fulfilled :boolean
Whether `promise` is in a fulfilled state, with a `value`.
Type:
- boolean
- Source:
group
Returns the model group.
- Source:
handleTreeChange
Calls handleTreeChange in delegate when nodes
are expanded/collapsed and when data changes
- Source:
(readonly) identifier :string
The identifier is the name of the object model and is used to make the
serialization of object models more readable.
Type:
- string
- Source:
identifier :string
The identifier is the name of the model and is used to make the
serialization of models more readable.
Type:
- string
- Default Value:
- this.name
- Source:
initiallyExpanded :boolean
Whether nodes in the tree should be expanded by default.
This will only apply when the tree's data
property is set. Nodes added dynamically will ignore this flag.
Type:
- boolean
- Source:
initWithObjects
When the labeler is initialized with objects these objects are
considered user defined objects.
initWithPath :function
Backward compatibility with selector.js
Type:
- function
- Source:
isNodeExpanded
Gets the node expansion value - boolean - for a given node
- Source:
manager
- Deprecated:
- Returns the model group.
- Source:
MontageInterpreter
- Deprecated:
- Yes
- Source:
ok
Makes an XHR request and only resolves the promise if the response status
is 2xx, otherwise it is rejected. The rejected Error object has a `response`
property containing the response.
- Source:
parameters :object
Type:
- object
- Source:
pending :boolean
Whether `promise` is in a pending state, in progress.
Type:
- boolean
- Source:
progress :string
The last known progress value emitted by the promise.
Type:
- string
- Source:
progressState :string
One of "determinate", "indeterminate", "fulfilled", "rejected".
Type:
- string
- Source:
promise :Promise
The promise whose state is interesting.
Type:
- Promise
- Source:
referenceFromValue
Take the value and creates a reference string for serialization.
The default implementation does nothing and must be overwritten by
subtypes.
- Source:
rejected :boolean
Whether `promise` is in a rejected state, with a `error`.
Type:
- boolean
- Source:
state :string
One of "pending", "fulfilled", "rejected".
Type:
- string
- Source:
syntax :object
The parsed expression, a syntactic tree.
Type:
- object
- Source:
value :object
The fulfillment value of the promise, if any.
Type:
- object
- Source:
valueFromReference
Takes the serialized reference and return a promise for the value.
The default implementation does nothing and must be overwritten by subtypes
- Source:
Methods
initMontage()
Initializes Montage and creates the application singleton if
necessary.
- Source:
initWithExpression(expression, parameters) → {Criteria}
Initialize a Criteria with an expression as string representation
for example expression: "(firstName= $firstName) && (lastName = $lastName)"
parameters: {
"firstName": "Han",
"lastName": "Solo"
}
Parameters:
Name | Type | Description |
---|---|---|
expression |
string | A string representaton of the criteria expected to be a valid Montage expression. |
parameters |
object | Optional object containing value for an expressions' prameters |
- Source:
Returns:
- The Criteria initialized.
- Type
- Criteria
initWithSyntax() → {Criteria}
Initialize a Criteria with a compiled syntax.
- Source:
Returns:
- The Criteria initialized.
- Type
- Criteria