Preferences Server Integration

Overview

Component Name: gpii.firstDiscovery.prefsServerIntegration

File: firstDiscoveryEditor.js

The Preferences Server Integration grade contains the configuration necessary to connect the First Discovery Editor with the GPII Preferences Server. This grade is intended to be added as a base grade to the First Discovery Editor.

Using the Preferences Server Integration grade

The Preferences Server Integration grade is added to the list of loaderGrades in an Auxiliary Schema:

fluid.defaults("my.auxSchema", {
    auxiliarySchema: {
        "loaderGrades": ["gpii.firstDiscovery.firstDiscoveryEditor", "gpii.firstDiscovery.prefsServerIntegration"]
    }
});

Grades

This component uses the following base grades:

Model

This component supports the following model properties:

Path Description Values Default
isLastPanel Whether or not the current panel is the last panel. Boolean undefined

Methods

Method Description Parameters
updateIsLastPanel Update the model value isLastPanel. This method sets the model value to true when the last panel becomes visible. Otherwise, sets the value to false. none

Options

NameDescriptionValuesDefault
styles Specify the class name used to identify that the currently visible panel is the last panel.
styles: {
    lastPanel: "gpii-fd-lastPanel"
}
saveRequestConfig Specify the endpoint, method and view for sending ajax request to the server. This option is distributed to the token panel where the configuration is actually used.
saveRequestConfig: {
            view: "firstDiscovery"
        }

Dependencies

<script type="text/javascript" src="src/lib/infusion/infusion-custom.js"></script>
<script type="text/javascript" src="src/schemas/schemas.js"></script>
<script type="text/javascript" src="src/js/keyboardShortcut.js"></script>
<script type="text/javascript" src="src/js/ttsHookup.js"></script>
<script type="text/javascript" src="src/js/tooltip.js"></script>
<script type="text/javascript" src="src/js/msgLookup.js"></script>
<script type="text/javascript" src="src/js/selfVoicing.js"></script>
<script type="text/javascript" src="src/js/stickyKeysAssessment.js"></script>
<script type="text/javascript" src="src/js/keyboardInput.js"></script>
<script type="text/javascript" src="src/js/stickyKeysAdjuster.js"></script>
<script type="text/javascript" src="src/js/panels.js"></script>
<script type="text/javascript" src="src/js/enactors.js"></script>
<script type="text/javascript" src="src/js/navButtons.js"></script>
<script type="text/javascript" src="src/js/navIcons.js"></script>
<script type="text/javascript" src="src/js/helpButton.js"></script>
<script type="text/javascript" src="src/js/stepCount.js"></script>
<script type="text/javascript" src="src/js/nav.js"></script>
<script type="text/javascript" src="src/js/firstDiscoveryEditor.js"></script>