API Docs for: 0.0.1
Show:

Setting Class

Defined in: lib/config.js:193
Module: niviz

A configuration setting template.

Constructor

Setting

(
  • obj
)

Defined in lib/config.js:193

Parameters:

  • obj Object

    The setting template.

Item Index

Methods

Properties

Methods

clear

() chainable

Defined in lib/config.js:314

Delete the value of the setting.

get

() Object

Defined in lib/config.js:277

Get the current value of the setting or the default value.

Returns:

normalize

(
  • value
)

Defined in lib/config.js:303

Normalize the value according to its type, the exact scheme is specified in Setting.normalize.

Parameters:

passthrough

(
  • object
)
Object | Array static

Defined in lib/config.js:213

A normalization for objects and arrays. Strips any AngularJS hashKeys from the objects.

Parameters: