# Global

##

### Members

#### _isLinkLoadEventAvailable

Returns if the load event is available for link elements

Source:
  - core/document-resources.js, line 47

#### _offlinePrimaryKeys

caches the primary keys only

Source:
  - data/service/persistent-data-service.js, line 1557

#### _webkitVersion

Returns major webkit version or null if not webkit

Source:
  - core/document-resources.js, line 33

#### addPrimaryKeyDependency

this assumes this._offlinePrimaryKeys has already been fetched

Source:
  - data/service/persistent-data-service.js, line 1443

#### 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.

Source:
  - data/service/authorization-policy.js, line 16

#### 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:
  - core/tree-controller.js, line 53

#### childrenFromNode

Returns the children of a given node based on childrenExpression

Source:
  - core/tree-controller.js, line 238

#### collapseAll

Collapses all nodes with children in the tree.

Source:
  - core/tree-controller.js, line 218

#### collapseNode

Collapses a given node of the tree

Source:
  - core/tree-controller.js, line 205

#### compiledSyntax :function

The compiled expression, a function, that is used directly for evaluation.

##### Type:

- function

Source:
  - core/criteria.js, line 58

#### converters :Array.<Converter>

The converters to chain on convert()

##### Type:

- Array.<Converter>

Source:
  - core/converter/pipeline-converter.js, line 44

#### createDefaultBlueprintForObject

Deprecated:
  - Creates a default object descriptor with all enumerable properties. **Note:** Value type are set to the string default.
Source:
  - core/meta/object-descriptor.js, line 1257

#### createDefaultObjectDescriptorForObject

Creates a default object descriptor with all enumerable properties. **Note:** Value type are set to the string default.

Source:
  - core/meta/object-descriptor.js, line 1268

#### data

Tree data model / root

Source:
  - core/tree-controller.js, line 111

#### data

Data can be any Object[] with any Object structure, developer will pick right key by binding desired FRB expression.

Source:
  - ui/segmented-bar.info/sample/ui/main.reel/main.js, line 16

#### deserialize

Source:
  - core/serialization/deserializer/montage-deserializer.js, line 48

#### 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:
  - core/promise-controller.js, line 92

#### (nullable) error :Error

The error from the promise, if it was rejected.

##### Type:

- Error

Source:
  - core/promise-controller.js, line 110

#### expandAll

Expands all nodes with children in the tree.

Source:
  - core/tree-controller.js, line 187

#### expandNode

Expands a given node of the tree

Source:
  - core/tree-controller.js, line 156

#### expression :string

returns Criteria's expression, which is not expected to change after being initialized

##### Type:

- string

Source:
  - core/criteria.js, line 22

#### fooCount

Starts with 1 because 1 Foo is declared in serialization as default content for succession1

Source:
  - ui/succession.info/sample/ui/main.reel/main.js, line 13

#### fulfilled :boolean

Whether `promise` is in a fulfilled state, with a `value`.

##### Type:

- boolean

Source:
  - core/promise-controller.js, line 79

#### group

Returns the model group.

Source:
  - core/meta/model.js, line 374

#### handleTreeChange

Calls handleTreeChange in delegate when nodes are expanded/collapsed and when data changes

Source:
  - core/tree-controller.js, line 132

#### (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:
  - core/meta/model-reference.js, line 19

#### 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:
  - core/meta/object-descriptor-reference.js, line 21

#### 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:
  - core/tree-controller.js, line 100

#### initWithObjects

When the labeler is initialized with objects these objects are considered user defined objects.

Source:
  - core/serialization/serializer/montage-labeler.js, line 95

#### initWithPath :function

Backward compatibility with selector.js

##### Type:

- function

Source:
  - core/criteria.js, line 107

#### isNodeExpanded

Gets the node expansion value - boolean - for a given node

Source:
  - core/tree-controller.js, line 229

#### manager

Deprecated:
  - Returns the model group.
Source:
  - core/meta/model.js, line 393

#### MontageInterpreter

Deprecated:
  - Yes
Source:
  - core/serialization/deserializer/montage-interpreter.js, line 12

#### 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:
  - core/request.js, line 101

#### parameters :object

##### Type:

- object

Source:
  - core/criteria.js, line 30

#### pending :boolean

Whether `promise` is in a pending state, in progress.

##### Type:

- boolean

Source:
  - core/promise-controller.js, line 73

#### progress :string

The last known progress value emitted by the promise.

##### Type:

- string

Source:
  - core/promise-controller.js, line 98

#### progressState :string

One of "determinate", "indeterminate", "fulfilled", "rejected".

##### Type:

- string

Source:
  - core/promise-controller.js, line 67

#### promise :Promise

The promise whose state is interesting.

##### Type:

- Promise

Source:
  - core/promise-controller.js, line 55

#### referenceFromValue

Take the value and creates a reference string for serialization. The default implementation does nothing and must be overwritten by subtypes.

Source:
  - core/meta/remote-reference.js, line 87

#### rejected :boolean

Whether `promise` is in a rejected state, with a `error`.

##### Type:

- boolean

Source:
  - core/promise-controller.js, line 85

#### state :string

One of "pending", "fulfilled", "rejected".

##### Type:

- string

Source:
  - core/promise-controller.js, line 61

#### syntax :object

The parsed expression, a syntactic tree.

##### Type:

- object

Source:
  - core/criteria.js, line 45

#### value :object

The fulfillment value of the promise, if any.

##### Type:

- object

Source:
  - core/promise-controller.js, line 104

#### valueFromReference

Takes the serialized reference and return a promise for the value. The default implementation does nothing and must be overwritten by subtypes

Source:
  - core/meta/remote-reference.js, line 75

### Methods

#### initMontage()

Initializes Montage and creates the application singleton if necessary.

Source:
  - montage.js, line 590

#### 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:
  - core/criteria.js, line 94

##### Returns:

- The Criteria initialized.

Type
  Criteria

#### initWithSyntax() → {Criteria}

Initialize a Criteria with a compiled syntax.

Source:
  - core/criteria.js, line 70

##### Returns:

- The Criteria initialized.

Type
  Criteria