ExternalDataManager

How to get ExternalDataManager

ES2015+:

import ExternalDataManager from 'fontoxml-templated-views/externalDataManager'

ES5:

define([
	'fontoxml-templated-views/externalDataManager'
], function (
	ExternalDataManager
) {
});

Type: Class

Some templates need to render something not in the current document, or something that is derived from other data, which is expensive to compute. To be able to react to changes in this data, external data can be used in a template.

Methods

Name Description
setExternalData

Set a piece of external data and cause a rerender for any templated views depending on that data.

Note that internal mutations in the given value will not trigger view updates. It is therefore recommended to keep external values immutable and/or as flat as possible.


  Arguments
# Name Type Description
1. name String
2. value any