ClassNameManager Class
A singleton class providing:
<ul> <li>Easy creation of prefixed class names</li> <li>Caching of previously created class names for improved performance.</li> </ul>
Methods
getClassName
-
[classnameSection*]
-
skipPrefix
Returns a class name prefixed with the value of the <code>Y.config.classNamePrefix</code> attribute + the provided strings. Uses the <code>Y.config.classNameDelimiter</code> attribute to delimit the provided strings. E.g. Y.ClassNameManager.getClassName('foo','bar'); // yui-foo-bar
Parameters:
-
[classnameSection*]
String optionalone or more classname sections to be joined
-
skipPrefix
BooleanIf set to true, the classname will not be prefixed with the default Y.config.classNameDelimiter value.
Properties
classNameDelimiter
String
static
Configuration property indicating the delimiter used to compose all CSS class names in this YUI instance.
Default: "-"
classNamePrefix
String
static
Configuration property indicating the prefix for all CSS class names in this YUI instance.
Default: "yui"