Takes an element, and decorates it with a {@link goog.ui.Control} instance
if a suitable decorator is found.
Returns:
New control instance that decorates the element (null if none).
|
code » | |
Takes an element and returns a new instance of {@link goog.ui.Control}
or a subclass, suitable to decorate it (based on the element's CSS class).
Returns:
New control instance to decorate the element (null if none).
|
code » | |
![]()
Maps a CSS class name to a function that returns a new instance of
{@link goog.ui.Control} or a subclass thereof, suitable to decorate
an element that has the specified CSS class. UI components that extend
{@link goog.ui.Control} and want {@link goog.ui.Container}s to be able
to discover and decorate elements using them should register a factory
function via this API.
|
code » |