Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page is a work in progress.

PrefsService - Preferences Service

...

Example UsageArgumentsReturn Value
ps.asNumbers(obj, keys);

obj - cookie object that has string values representing numbers

keys - (optional) a set of keys in obj that you want their values to be converted to numbers. If this value is falsy, then all keys in obj will be converted to numbers.

 

 

setPrefs

 

 

 

 

obj with all (or specified keys) of its values converted from strings to numbers

setPrefs

Sets the cookie preferences as a string into the cache.

Example UsageArgumentsReturn Value
ps.setPrefs(name, obj);

name - string of the name of the cookie preferences

obj - object containing key value pairs for the cookie values. *

none, but stores cookies

* Cookies for the Topology View are stored as numbers 0 or 1 for toggle button state.