InitialDocumentsManager

How to get InitialDocumentsManager

ES2015+:

import InitialDocumentsManager from 'fontoxml-remote-documents/initialDocumentsManager'

ES5:

define([
	'fontoxml-remote-documents/initialDocumentsManager'
], function (
	InitialDocumentsManager
) {
});

Type: Class

The InitialDocumentsManager provides an interface to load, unload and reload the documents to be shown in the editor. Various implementations of these functions exist that modify the DocumentsHierarchy in different ways. This manager uncouples other code from the specifics of those implementations.

It also provides a notifier to signal when the initial documents have loaded.

Properties

Name Type Description
initialDocumentsLoadedNotifier Notifier

Invoked after the initial documents have loaded

Methods

Name Description
setLoadingStrategy

Set the functions to use for loading, unloading and reloading the documents to be used in the editor.

Note: releases before 7.6 required each function to be passed as a separate argument. This will continue to work for 7.x releases, but is considered deprecated.


  Arguments
# Name Type Description
1. strategy LoadingStrategy