goog.ui.Component
by adding
the following:
goog.events.KeyHandler
, to simplify keyboard handling,
Use
goog.ui.decorate instead.
Takes an element, and decorates it with a goog.ui.Control instance
if a suitable decorator is found.
Arguments:
Returns: ?goog.ui.Control
New control instance that decorates the element
(null if none).
|
code » | |||
Use
goog.ui.registry.getDecorator instead.
Takes an element and returns a new instance of goog.ui.Control
or a subclass, suitable to decorate it (based on the element's CSS class).
Arguments:
Returns: ?goog.ui.Control
New control instance to decorate the element
(null if none).
|
code » | |||
Checks if a mouse event (mouseover or mouseout) occured below an element.
Arguments:
Returns: boolean
Whether the event has a relatedTarget (the element the
mouse is coming from) and it's a descendent of elem.
|
code » | |||
![]()
Use
goog.ui.registry.setDecoratorByClassName instead.
Maps a CSS class name to a function that returns a new instance of
goog.ui.Control or a subclass thereof, suitable to decorate
an element that has the specified CSS class. UI components that extend
goog.ui.Control and want goog.ui.Container s to be able
to discover and decorate elements using them should register a factory
function via this API.
|
code » |
![]()
No description.
|
Code » |