Class xrx.component
Defined in: component.js.
Constructor Attributes | Constructor Name and Description |
---|---|
xrx.component(element)
|
Method Attributes | Method Name and Description |
---|---|
getBind()
Gets the bind referenced by the component.
|
|
Gets the bind ID found in the component's data-xrx-bind attribute.
|
|
Gets the component's element.
|
|
Returns the event handler for this component, lazily created the first time
this method is called.
|
|
getId()
Gets the unique ID for the instance of this component.
|
|
Gets the XPath expression found in the component's data-xrx-ref attribute.
|
Method Detail
{?xrx.bind}
getBind()
Gets the bind referenced by the component.
- Returns:
- {?xrx.bind} The bind.
{?string}
getBindId()
Gets the bind ID found in the component's data-xrx-bind attribute.
- Returns:
- {?string} The bind ID.
{Element}
getElement()
Gets the component's element.
- Returns:
- {Element} The element for the component.
{!goog.events.EventHandler}
getHandler()
Returns the event handler for this component, lazily created the first time
this method is called.
- Returns:
- {!goog.events.EventHandler} Event handler for this component.
{string}
getId()
Gets the unique ID for the instance of this component. If the instance
doesn't already have an ID, generates one on the fly.
- Returns:
- {string} Unique component ID.
{?string}
getRefExpression()
Gets the XPath expression found in the component's data-xrx-ref attribute.
- Returns:
- {?string} The expression.