Documentation for a historical release of Infusion: 1.4
Please view the Infusion Documentation site for the latest documentation, or the Infusion 1.3. Documentation for the previous release.
If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Temporary Settings Store


The Temporary Settings Store subcomponent is used by UI Enhancer to store/save user preferences temporarily, without persistence. This store may be useful for testing situations. For a settings store that persists, use the Cookie Settings Store.

Do not use this component directly. The information on this page should be use when customizing UI Enhancer.

See Also
UI Enhancer
Cookie Settings Store

Supported Events

none

#Methods

#fetch()
Retrieves the current settings.
#save(settings)
Saves the specified settings.

Methods

back to top

fetch()

Description

Retrieves the current settings.

Parameters

none

Return value

A JavaScript object containing the currently stored settings. This object has the following format:

{
    textFont: <string>, // key from classname map
    theme: <string>, // key from classname map
    textSize: <number>, // in points
    lineSpacing: <number>, // in ems
    layout: <boolean>,
    toc: <boolean>,
    links: <boolean>,
    inputsLarger: <boolean>
}

Availability

Infusion 1.4 and later

See also

#save(settings)

save(settings)

Description

Stores the specified settings.

Parameters

settings
A JavaScript object containing the settings to be stored.
Form:

{
    textFont: <string>, // key from classname map
    theme: <string>, // key from classname map
    textSize: <number>, // in points
    lineSpacing: <number>, // in ems
    layout: <boolean>,
    toc: <boolean>,
    links: <boolean>,
    inputsLarger: <boolean>
}

Availability

Infusion 1.4 and later

See also

#fetch()