Namespace sap.ui.core.theming.ParametersModule: sap/ui/core/theming/Parameters
A helper used for (read-only) access to CSS parameters at runtime
Method Summary
sap.ui.core.theming.Parameters.get(sName, oControl?)Returns the current value for the given CSS parameter.
sap.ui.core.theming.Parameters.reset()Resets the CSS parameters which finally will reload the parameters the next time they are queried via the method
get
. Method Detail
sap.ui.core.theming.Parameters.get(sName, oControl?): any
Returns the current value for the given CSS parameter. If no parameter is given, a map containing all parameters is returned. This map is a copy, so changing values in the map does not have any effect. For any other input or an undefined parameter name, the result is undefined.
Parameters:
{string} | sName | the CSS parameter name |
{object} | oControl? | optional the control instance |
Returns:
{any} | the CSS parameter value |