ClassNameManager Class
+ + + + +A singleton class providing:
+ +-
+
- Easy creation of prefixed class names +
- Caching of previously created class names for improved performance. +
-
+
- Index + + +
- Methods + + +
- Properties + + + +
Item Index
+ + +Methods
+ +-
+
+
- + getClassName + + + + + +
Properties
+ +-
+
+
- + classNameDelimiter + + + static + + + + +
- + classNamePrefix + + + static + + + + +
Methods
+ + +getClassName
+
+
+ -
+
+
-
+
+
++ +
+
+ -
+
+
skipPrefix+ +
+
+
Returns a class name prefixed with the the value of the
+Y.config.classNamePrefix attribute + the provided strings.
+Uses the Y.config.classNameDelimiter attribute to delimit the
+provided strings. E.g. Y.ClassNameManager.getClassName('foo','bar'); // yui-foo-bar
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"
+ + + + + +