Class JQuery
java.lang.Object
de.knightsoftnet.mtwidgets.client.jswrapper.JQuery
JQuery wrapper.
- Author:
- Manfred Tremmel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JQueryGet the value of an attribute for the first element in the set of matched elements.Set one or more attributes for the set of matched elements.Get the computed style properties for the first element in the set of matched elements.Set one or more CSS properties for the set of matched elements.elemental2.dom.HTMLInputElementget shadow element for polyfilled widget.removeAttr(String attributeName) Remove an attribute from each element in the set of matched elements.update polyfill usage of the element.val()Get the current value of the first element in the set of matched elements.Set the value of each element in the set of matched elements.
-
Constructor Details
-
JQuery
public JQuery()
-
-
Method Details
-
$
-
css
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
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
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
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
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
Get the current value of the first element in the set of matched elements.- Returns:
- value as object
-
val
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
update polyfill usage of the element.- Returns:
- self
JQuery
-
getShadowElement
public elemental2.dom.HTMLInputElement getShadowElement()get shadow element for polyfilled widget.- Returns:
- InputElement
-