Function Summary | |
NamespaceEntry_(string namespace, !Array entries) Entries used to represent the collapsible namespace links. These entries are never registered with the TweakRegistry, but are contained within the collection of entries within TweakPanels. | |
applyConfigParams_(!goog.tweak.BaseEntry entry, !goog.tweak.ConfigParams configParams) Applies all extra configuration parameters in configParams. | |
beginBooleanGroup(string id, string description, ?goog.tweak.ConfigParams= 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(). | |
configParamsNeverCompilerWarningWorkAround_() ⇒ ?goog.tweak.ConfigParams Silences warning about properties on ConfigParams never being set when running JsLibTest. | |
doRegister_(!goog.tweak.BaseEntry entry, (boolean|number|string=) opt_defaultValue, ?goog.tweak.ConfigParams= opt_configParams) Registers a tweak using the given factoryFunc. | |
endBooleanGroup() Stops adding boolean entries to the active boolean group. | |
getBoolean(string id) ⇒ boolean Returns the value of the boolean setting with the given ID. | |
getCompilerOverrides_() ⇒ !Object Calls to this function are overridden by the compiler by the processTweaks pass. It returns the overrides to default values for tweaks set by compiler options. | |
getNumber(string id) ⇒ number Returns the value of the numeric setting with the given ID. | |
getRegistry() ⇒ !goog.tweak.Registry Returns/creates the registry singleton. | |
getString(string id) ⇒ string Returns the value of the string setting with the given ID, | |
overrideDefaultValue(string id, (boolean|number|string) 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. | |
registerBoolean(string id, string description, boolean= opt_defaultValue, ?goog.tweak.ConfigParams= opt_configParams) Creates and registers a BooleanSetting. | |
registerButton(string id, string description, !Function callback, string= opt_label) Creates and registers a ButtonAction. | |
registerNumber(string id, string description, number= opt_defaultValue, ?goog.tweak.ConfigParams= opt_configParams) Creates and registers a NumericSetting. | |
registerString(string id, string description, string= opt_defaultValue, ?goog.tweak.ConfigParams= opt_configParams) Creates and registers a StringSetting. |