Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (52 sloc) 1.82 KB
title layout category
Settings Store
default
Infusion

The Infusion Preferences Framework uses a Settings Store to read and write preferences.

fluid.prefs.store

A base grade to be used by any preference setting store. This component uses the following base grades:

fluid.prefs.dataSource

A grade used by fluid.prefs.store; defines placeholders for get and set methods.

Method Placeholder Description
get For retrieving preferences. Should return the preferences
set For saving preferences. Should accept the preferences as an argument.

fluid.prefs.cookieStore

A settings store grade that uses a cookie for persistence.

MethodImplementation
get
fluid.prefs.cookieStore.get = function (cookieName)
set
fluid.prefs.cookieStore.set = function (settings, cookieOptions)

fluid.prefs.tempStore

A settings store mock that doesn't do persistence. This grade is useful for tests.

MethodImplementation
get fluid.identity
set
fluid.prefs.tempStore.set = function (settings, applier)
You can’t perform that action at this time.