Class JQuery
- java.lang.Object
-
- de.knightsoftnet.mtwidgets.client.jswrapper.JQuery
-
@JsType(isNative=true) public abstract class JQuery extends Object
JQuery wrapper.- Author:
- Manfred Tremmel
-
-
Constructor Summary
Constructors Constructor Description JQuery()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JQuery$(String selector)Objectattr(String attr)Get the value of an attribute for the first element in the set of matched elements.JQueryattr(String attr, Object value)Set one or more attributes for the set of matched elements.Stringcss(String... propertyName)Get the computed style properties for the first element in the set of matched elements.JQuerycss(String propertyName, String value)Set one or more CSS properties for the set of matched elements.elemental2.dom.HTMLInputElementgetShadowElement()get shadow element for polyfilled widget.JQueryremoveAttr(String attributeName)Remove an attribute from each element in the set of matched elements.JQueryupdatePolyfill()update polyfill usage of the element.Objectval()Get the current value of the first element in the set of matched elements.JQueryval(String value)Set the value of each element in the set of matched elements.
-
-
-
Method Detail
-
css
public String css(String... propertyName)
Get the computed style properties for the first element in the set of matched elements.- Parameters:
propertyName- A CSS property.- Returns:
- css class as string
-
css
public JQuery css(String propertyName, String value)
Set one or more CSS properties for the set of matched elements.- Parameters:
propertyName- A CSS property.value- A value to set for the property.- Returns:
- self
JQuery
-
attr
public Object attr(String attr)
Get the value of an attribute for the first element in the set of matched elements.- Parameters:
attr- The name of the attribute to get.- Returns:
- attribute as object
-
attr
public JQuery attr(String attr, Object value)
Set one or more attributes for the set of matched elements.- Parameters:
attr- The name of the attribute to set.value- A value to set for the attribute.- Returns:
- self
JQuery
-
removeAttr
public JQuery removeAttr(String attributeName)
Remove an attribute from each element in the set of matched elements.- Parameters:
attributeName- An attribute to remove; as of version 1.7, it can be a space-separated list of attributes.- Returns:
- self
JQuery
-
val
public Object val()
Get the current value of the first element in the set of matched elements.- Returns:
- value as object
-
val
public JQuery val(String value)
Set the value of each element in the set of matched elements.- Parameters:
value- A string of text corresponding to the value of each matched element to set as selected/checked.- Returns:
- self
JQuery
-
updatePolyfill
public JQuery updatePolyfill()
update polyfill usage of the element.- Returns:
- self
JQuery
-
getShadowElement
public elemental2.dom.HTMLInputElement getShadowElement()
get shadow element for polyfilled widget.- Returns:
- InputElement
-
-