Index

Global Objects

Types


Type $

An JQuery-like object which allows manipulation of HTML elements.

Method Summary
Method Attributes Method Name and Description
 
attr(attribute, value)
A method to either set or get the value of an HTML-attribute.
Type Detail
<private> $(target)
The constructor is not public. Instances can currently only be obtained from Widget#$el.
Parameters:
target
Since:
2.3
Method Detail
{string|$} attr(attribute, value)
A method to either set or get the value of an HTML-attribute. Note that the attributes "id" and "class" can not be set this way.
Parameters:
{string|Object} attribute
The name of the attribute to return or modify. Alternatively a plain object with key-value pairs to set.
{string} value Optional
The value to set the attribute to.
Returns:
{string|$} The the value of the given attribute, if the function is called with a string only. Otherwise a reference to this object.

Copyright (c) EclipseSource and others 2013, 2014. All rights reserved.