Home

# Library goog.ui.registry

Function Summary
| `getDecorator(?Element element) ⇒ ?goog.ui.Component` Returns an instance of {@link goog.ui.Component} or a subclass suitable to decorate the given element, based on its CSS class.
| `getDecoratorByClassName(string className) ⇒ ?goog.ui.Component` Returns the {@link goog.ui.Component} instance created by the decorator factory function registered for the given CSS class name, or null if no decorator factory function was found.
| `getDefaultRenderer(?Function componentCtor) ⇒ ?goog.ui.ControlRenderer` Given a {@link goog.ui.Component} constructor, returns an instance of its default renderer. If the default renderer is a singleton, returns the singleton instance; otherwise returns a new instance of the renderer class.
| `reset()` Resets the global renderer and decorator registry.
| `setDecoratorByClassName(string className, ?Function decoratorFn)` Maps a CSS class name to a function that returns a new instance of {@link goog.ui.Component} or a subclass, suitable to decorate an element that has the specified CSS class.
| `setDefaultRenderer(?Function componentCtor, ?Function rendererCtor)` Sets the default renderer for the given {@link goog.ui.Component} constructor.