goog.tweak
Namespacegoog.tweak.BaseEntry
ClassBase class for all Registry entries. … more
goog.tweak.BasePrimitiveSetting
ClassBase class for all settings that wrap primitive values. … more
goog.tweak.BaseSetting
ClassBase class for all tweak entries that are settings. Settings are entries that are associated with a query parameter. … more
goog.tweak.BooleanGroup
ClassA registry setting that contains a group of boolean subfield, where all entries modify the same query parameter. For example: ?foo=setting1,-setting2 … more
goog.tweak.BooleanInGroupSetting
ClassAn entry in a BooleanGroup. … more
goog.tweak.BooleanSetting
ClassA registry setting that can be either true of false. … more
goog.tweak.ButtonAction
ClassA registry action (a button). … more
.ConfigParams
Type for configParams. TODO(agrieve): Remove |Object when optional fields in struct types are implemented.
goog.tweak.EntriesPanel
ClassThe body of the tweaks UI and also used for BooleanGroup. … more
goog.tweak.NumericSetting
ClassA registry setting for numeric values. … more
goog.tweak.Registry
ClassSingleton that manages all tweaks. This should be instantiated only from goog.tweak.getRegistry(). … more
goog.tweak.StringSetting
ClassA registry setting for string values. … more
goog.tweak.TweakUi
ClassA UI for editing tweak settings / clicking tweak actions. … more
.beginBooleanGroup(id, description, opt_configParams)
Creates and registers a group of BooleanSettings that are all set by a single query parameter. A call to goog.tweak.endBooleanGroup() must be used to close this group. Only goog.tweak.registerBoolean() calls are allowed with the beginBooleanGroup()/endBooleanGroup().
id
{string
}
description
{string
}
opt_configParams
{goog.tweak.ConfigParams
=}
.endBooleanGroup()
Stops adding boolean entries to the active boolean group.
.getBoolean(id)
Returns the value of the boolean setting with the given ID.
id
{string
}
boolean
}
.getNumber(id)
Returns the value of the numeric setting with the given ID.
id
{string
}
number
}
.getRegistry()
Returns/creates the registry singleton.
goog.tweak.Registry
}
.getString(id)
Returns the value of the string setting with the given ID,
id
{string
}
string
}
.overrideDefaultValue(id, value)
Sets a default value to use for the given tweak instead of the one passed to the register* function. This function must be called before the tweak is registered.
id
{string
}
value
{string
|number
|boolean
}
.registerBoolean(id, description, opt_defaultValue, opt_configParams)
Creates and registers a BooleanSetting.
id
{string
}
description
{string
}
opt_defaultValue
{boolean
=}
opt_configParams
{goog.tweak.ConfigParams
=}
.registerButton(id, description, callback, opt_label)
Creates and registers a ButtonAction.
id
{string
}
description
{string
}
callback
{!Function
}
opt_label
{string
=}
.registerNumber(id, description, opt_defaultValue, opt_configParams)
Creates and registers a NumericSetting.
id
{string
}
description
{string
}
opt_defaultValue
{number
=}
opt_configParams
{goog.tweak.ConfigParams
=}
.registerString(id, description, opt_defaultValue, opt_configParams)
Creates and registers a StringSetting.
id
{string
}
description
{string
}
opt_defaultValue
{string
=}
opt_configParams
{goog.tweak.ConfigParams
=}
.testhelpers