Class JQuery


  • @JsType(isNative=true)
    public abstract class JQuery
    extends Object
    JQuery wrapper.
    Author:
    Manfred Tremmel
    • Constructor Detail

      • JQuery

        public JQuery()
    • Method Detail

      • $

        @JsMethod(namespace="<global>")
        public static JQuery $​(String selector)
      • 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