Trait

io.scalajs.npm.angularjs

JQLite

Related Doc: package angularjs

Permalink

trait JQLite extends HTMLElement

JQuery Lite

Annotations
@RawJSType() @native()
See also

https://docs.angularjs.org/api/ng/function/angular.element

Linear Supertypes
HTMLElement, Element, ParentNode, Node, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JQLite
  2. HTMLElement
  3. Element
  4. ParentNode
  5. Node
  6. Object
  7. Any
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addClass(fn: Function1[Int, String]): JQLite.this.type

    Permalink

    A function returning one or more space-separated class names to be added to the existing class name(s).

    A function returning one or more space-separated class names to be added to the existing class name(s). Receives the index position of the element in the set and the existing class name(s) as arguments. Within the function, this refers to the current element in the set.

    fn

    the given function

    returns

    the instance

    See also

    http://api.jquery.com/addClass/

  5. def addClass(fn: Function2[Int, String, String]): JQLite.this.type

    Permalink

    A function returning one or more space-separated class names to be added to the existing class name(s).

    A function returning one or more space-separated class names to be added to the existing class name(s). Receives the index position of the element in the set and the existing class name(s) as arguments. Within the function, this refers to the current element in the set.

    fn

    the given function

    returns

    the instance

    See also

    http://api.jquery.com/addClass/

  6. def addClass(className: String): JQLite.this.type

    Permalink

    One or more space-separated classes to be added to the class attribute of each matched element.

    One or more space-separated classes to be added to the class attribute of each matched element.

    className

    the given class name

    returns

    the instance

  7. def after(content: String*): JQLite.this.type

    Permalink

    Insert content, specified by the parameter, after each element in the set of matched elements.

    Insert content, specified by the parameter, after each element in the set of matched elements.

    content

    the given HTML content

    returns

    the instance

  8. def append(content: String*): JQLite.this.type

    Permalink

    Insert content, specified by the parameter, to the end of each element in the set of matched elements.

    Insert content, specified by the parameter, to the end of each element in the set of matched elements.

    content

    the given HTML content

    returns

    the instance

  9. def append(nodes: |[Node, String]*): JQLite.this.type

    Permalink
    Definition Classes
    ParentNode
  10. def appendChild(node: Node): Node

    Permalink
    Definition Classes
    Node
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def attr(attributeName: String): JQLite.this.type

    Permalink

    Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.

    Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.

    attributeName

    the given attribute name

    returns

    the instance

  13. def attributes: NamedNodeMap[Attr]

    Permalink
    Definition Classes
    Node
  14. def bind(events: Object): JQLite.this.type

    Permalink

    Attach a handler to an event for the elements.

    Attach a handler to an event for the elements.

    events

    An object containing one or more DOM event types and functions to execute for them.

    returns

    the instance

  15. def bind(eventType: String, eventData: Any): JQLite.this.type

    Permalink

    Attach a handler to an event for the elements.

    Attach a handler to an event for the elements.

    eventType

    A string containing one or more DOM event types, such as "click" or "submit," or custom event names.

    eventData

    An object containing data that will be passed to the event handler.

    returns

    the instance

  16. def bind(eventType: String, eventData: Any = js.native, preventBubble: Boolean): JQLite.this.type

    Permalink

    Attach a handler to an event for the elements.

    Attach a handler to an event for the elements.

    eventType

    A string containing one or more DOM event types, such as "click" or "submit," or custom event names.

    eventData

    An object containing data that will be passed to the event handler.

    preventBubble

    Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling. The default is true.

    returns

    the instance

  17. def bind(eventType: String, eventData: Any, handler: Function1[Event, Unit]): JQLite.this.type

    Permalink

    Attach a handler to an event for the elements.

    Attach a handler to an event for the elements.

    eventType

    A string containing one or more DOM event types, such as "click" or "submit," or custom event names.

    eventData

    An object containing data that will be passed to the event handler.

    handler

    A function to execute each time the event is triggered.

    returns

    the instance

  18. def blur(): Unit

    Permalink
    Definition Classes
    HTMLElement
  19. def childElementCount: UnsignedLong

    Permalink
    Definition Classes
    ParentNode
  20. def childNodes[T <: Node]: NodeList[T]

    Permalink
    Definition Classes
    Node
  21. def children(selector: String = js.native): JQLite.this.type

    Permalink

    Get the children of each element in the set of matched elements, optionally filtered by a selector.

    Get the children of each element in the set of matched elements, optionally filtered by a selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    the instance

  22. def children: HTMLCollection[Element]

    Permalink
    Definition Classes
    ParentNode
  23. def click(): Unit

    Permalink
    Definition Classes
    HTMLElement
  24. def clone(withDataAndEvents: Boolean = js.native): JQLite.this.type

    Permalink

    Create a deep copy of the set of matched elements.

    Create a deep copy of the set of matched elements.

    withDataAndEvents

    A Boolean indicating whether event handlers should be copied along with the elements. As of jQuery 1.4, element data will be copied as well.

    returns

    the instance

  25. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def cloneNode(deep: Boolean): JQLite.this.type

    Permalink
    Definition Classes
    Node
  27. def contents(): JQLite

    Permalink

    Get the children of each element in the set of matched elements, including text and comment nodes.

    Get the children of each element in the set of matched elements, including text and comment nodes.

    returns

    a JQuery instance

  28. def controller[T <: Object](name: String = js.native): T

    Permalink

    Retrieves the controller of the current element or its parent.

    Retrieves the controller of the current element or its parent. By default retrieves controller associated with the ngController directive. If name is provided as camelCase directive name, then the controller for this directive will be retrieved

    name

    the name of the controller

    returns

    the controller instance

  29. def css(propertyNames: Array[String]): String

    Permalink

    Get the computed style properties for the first element in the set of matched elements.

    Get the computed style properties for the first element in the set of matched elements.

    propertyNames

    An array of one or more CSS properties.

    returns

    the instance

  30. def css(propertyName: String): String

    Permalink

    Get the computed style properties for the first element in the set of matched elements.

    Get the computed style properties for the first element in the set of matched elements.

    propertyName

    A CSS property.

    returns

    the instance

  31. def css(): String

    Permalink

    Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.

    Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.

    returns

    the instance

  32. def data(obj: Object): JQLite

    Permalink

    Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements

    Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements

    obj

    An object of key-value pairs of data to update.

    returns

    a JQuery instance

  33. def data(key: String, value: Any): JQLite

    Permalink

    Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements.

    Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements.

    key

    A string naming the piece of data to set.

    value

    The new data value; this can be any Javascript type except undefined.

    returns

    a JQuery instance

  34. def detach(selector: Any = js.native): JQLite.this.type

    Permalink

    Remove the set of matched elements from the DOM (AngularJS 1.4).

    Remove the set of matched elements from the DOM (AngularJS 1.4).

    selector

    A selector expression that filters the set of matched elements to be removed.

    returns

    the instance

  35. def empty(): JQLite.this.type

    Permalink

    Remove all child nodes of the set of matched elements from the DOM (AngularJS 1.0).

    Remove all child nodes of the set of matched elements from the DOM (AngularJS 1.0).

    returns

    the instance

  36. def eq(index: Int): JQLite.this.type

    Permalink

    Reduce the set of matched elements to the one at the specified index (AngularJS 1.4).

    Reduce the set of matched elements to the one at the specified index (AngularJS 1.4).

    index

    An integer indicating the position of the element, counting backwards from the last element in the set.

    returns

    the instance

  37. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  38. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  39. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  40. def find(element: JQLite): Element

    Permalink

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    element

    An element or a jQuery object to match elements against.

    returns

    the instance

  41. def find(element: Element): Element

    Permalink

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    element

    An element or a jQuery object to match elements against.

    returns

    the instance

  42. def find[T](selector: String): T

    Permalink

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    selector

    A string containing a selector expression to match elements against.

    returns

    the typed selector

  43. def firstChild[T <: Node]: T

    Permalink
    Definition Classes
    Node
  44. def firstElementChild: Element

    Permalink
    Definition Classes
    ParentNode
  45. def focus(): Unit

    Permalink
    Definition Classes
    HTMLElement
  46. def getAttribute(name: String): String

    Permalink
    Definition Classes
    Element
  47. def getAttributeNS(namespace: String, name: String): Attr

    Permalink
    Definition Classes
    Element
  48. def getAttributeNode(name: String): Attr

    Permalink
    Definition Classes
    Element
  49. def getAttributeNodeNS(namespace: String, name: String): Attr

    Permalink
    Definition Classes
    Element
  50. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  51. def getElementsByTagName[T <: Element](name: String): HTMLCollection[T]

    Permalink
    Definition Classes
    Element
  52. def getElementsByTagNameNS[T <: Element](namespace: String, name: String): HTMLCollection[T]

    Permalink
    Definition Classes
    Element
  53. def hasAttribute(namespace: String, name: String): Boolean

    Permalink
    Definition Classes
    Element
  54. def hasAttribute(name: String): Boolean

    Permalink
    Definition Classes
    Element
  55. def hasAttributes(): Boolean

    Permalink
    Definition Classes
    Node
  56. def hasChildNodes(): Boolean

    Permalink
    Definition Classes
    Node
  57. def hasClass(className: String): Boolean

    Permalink

    Determine whether any of the matched elements are assigned the given class.

    Determine whether any of the matched elements are assigned the given class.

    className

    The class name to search for.

    returns

    true, if any of the matched elements are assigned the given class.

  58. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  59. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  60. def html(element: Any): String

    Permalink

    Get the HTML contents of the first element in the set of matched elements.

    Get the HTML contents of the first element in the set of matched elements.

    element

    the given element

    returns

    the HTML contents

  61. def html(): String

    Permalink

    Get the HTML contents of the first element in the set of matched elements.

    Get the HTML contents of the first element in the set of matched elements.

    returns

    the HTML contents

  62. def inheritedData(): Any

    Permalink
  63. def inheritedData[T <: Any](key: String): UndefOr[T]

    Permalink
  64. def inheritedData(obj: Object): JQLite

    Permalink
  65. def inheritedData(key: String, value: Any): JQLite

    Permalink

    Same as data(), but walks up the DOM until a value is found or the top parent element is reached.

    Same as data(), but walks up the DOM until a value is found or the top parent element is reached.

    key

    the given key

    value

    the given value

    returns

    the instance

  66. def injector(): Injector

    Permalink

    Retrieves the injector of the current element or its parent.

    Retrieves the injector of the current element or its parent.

    returns

    the injector

  67. def insertBefore(newNode: Node, existingChild: Node): Node

    Permalink
    Definition Classes
    Node
  68. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  69. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  70. def isSupported(feature: String, version: String): Boolean

    Permalink
    Definition Classes
    Node
  71. def isolateScope(): Scope

    Permalink

    Retrieves an isolate scope if one is attached directly to the current element.

    Retrieves an isolate scope if one is attached directly to the current element. This getter should be used only on elements that contain a directive which starts a new isolate scope. Calling scope() on this element always returns the original non-isolate scope. Requires Debug Data to be enabled.

    returns

    the scope

  72. def lastChild: Node

    Permalink
    Definition Classes
    Node
  73. def lastElementChild: Element

    Permalink
    Definition Classes
    ParentNode
  74. def localName: String

    Permalink
    Definition Classes
    Node
  75. def namespaceURI: String

    Permalink
    Definition Classes
    Node
  76. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  77. def next(selector: String = js.native): JQLite.this.type

    Permalink

    Get the immediately following sibling of each element in the set of matched elements.

    Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    the instance

  78. def nextSibling: Node

    Permalink
    Definition Classes
    Node
  79. def nodeName: String

    Permalink
    Definition Classes
    Node
  80. def nodeType: NodeType

    Permalink
    Definition Classes
    Node
  81. def nodeValue: Any

    Permalink
    Definition Classes
    Node
  82. def normalize(): Unit

    Permalink
    Definition Classes
    Node
  83. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  84. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  85. def off(events: String, selector: String = js.native, handler: Function1[Event, Unit] = js.native): JQLite.this.type

    Permalink

    Remove an event handler.

    Remove an event handler.

    events

    One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".

    selector

    A selector which should match the one originally passed to .on() when attaching event handlers.

    handler

    A handler function previously attached for the event(s), or the special value false.

    returns

    the instance

  86. def on(events: String, selector: String = js.native, data: Any = js.native, handler: Function = js.native): JQLite.this.type

    Permalink

    Attach an event handler function for one or more events to the selected elements.

    Attach an event handler function for one or more events to the selected elements.

    events

    One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".

    selector

    A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.

    data

    Data to be passed to the handler in event.data when an event is triggered.

    handler

    A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.

    returns

    the instance

  87. def one(events: String, data: Any = js.native, handler: Function1[Event, Unit] = js.native): JQLite.this.type

    Permalink

    Attach a handler to an event for the elements.

    Attach a handler to an event for the elements. The handler is executed at most once per element per event type.

    events

    One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".

    data

    Data to be passed to the handler in event.data when an event is triggered.

    handler

    A function to execute at the time the event is triggered.

    returns

    the instance

  88. def ownerDocument: Document

    Permalink
    Definition Classes
    Node
  89. def parent(selector: String = js.native): JQLite.this.type

    Permalink

    Get the parent of each element in the current set of matched elements, optionally filtered by a selector.

    Get the parent of each element in the current set of matched elements, optionally filtered by a selector.

    selector

    A string containing a selector expression to match elements against.

    returns

    the instance

  90. def parentNode: Node

    Permalink
    Definition Classes
    Node
  91. def prefix: String

    Permalink
    Definition Classes
    Node
  92. def prepend(fn: Function): JQLite.this.type

    Permalink

    Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

    Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

    fn

    A function that returns an HTML string, DOM element(s), or jQuery object to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.

    returns

    the instance

  93. def prepend(content: Any, content1: Any*): JQLite.this.type

    Permalink

    Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

    Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.

    content

    One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.

    returns

    the instance

  94. def prepend(nodes: |[Node, String]*): JQLite.this.type

    Permalink
    Definition Classes
    ParentNode
  95. def previousSibling: Node

    Permalink
    Definition Classes
    Node
  96. def prop(propertyName: String, value: Any): JQLite.this.type

    Permalink

    Set one or more properties for the set of matched elements.

    Set one or more properties for the set of matched elements.

    propertyName

    The name of the property to set.

    value

    A value to set for the property.

    returns

    the instance

  97. def prop[T <: Any](propertyName: String): T

    Permalink

    Get the value of a property for the first element in the set of matched elements (AngularJS 1.6).

    Get the value of a property for the first element in the set of matched elements (AngularJS 1.6).

    propertyName

    The name of the property to get.

    returns

    the property value

  98. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  99. def ready(handler: Function): JQLite.this.type

    Permalink

    Specify a function to execute when the DOM is fully loaded.

    Specify a function to execute when the DOM is fully loaded.

    handler

    A function to execute after the DOM is ready.

    returns

    the instance

  100. def remove(selector: String): JQLite.this.type

    Permalink

    Remove the set of matched elements from the DOM.

    Remove the set of matched elements from the DOM.

    selector

    A selector expression that filters the set of matched elements to be removed.

    returns

    the instance

  101. def removeAttr(attributeName: String): JQLite.this.type

    Permalink

    Remove an attribute from each element in the set of matched elements.

    Remove an attribute from each element in the set of matched elements.

    attributeName

    An attribute to remove; as of AngularJS 1.7, it can be a space-separated list of attributes.

    returns

    the instance

  102. def removeAttribute(name: String): Unit

    Permalink
    Definition Classes
    Element
  103. def removeAttributeNS(namespace: String, name: String): Unit

    Permalink
    Definition Classes
    Element
  104. def removeAttributeNode(attr: Attr): Attr

    Permalink
    Definition Classes
    Element
  105. def removeChild(oldNode: Node): Unit

    Permalink
    Definition Classes
    Node
  106. def removeClass(fn: Function): JQLite.this.type

    Permalink

    Remove a single class, multiple classes, or all classes from each element in the set of matched elements (AngularJS 1.4).

    Remove a single class, multiple classes, or all classes from each element in the set of matched elements (AngularJS 1.4).

    fn

    A function returning one or more space-separated class names to be removed. Receives the index position of the element in the set and the old class value as arguments.

    returns

    the instance

  107. def removeClass(className: String = js.native): JQLite.this.type

    Permalink

    Remove a single class, multiple classes, or all classes from each element in the set of matched elements.

    Remove a single class, multiple classes, or all classes from each element in the set of matched elements.

    className

    One or more space-separated classes to be removed from the class attribute of each matched element.

    returns

    the instance

  108. def removeData(list: Array[String] = js.native): JQLite.this.type

    Permalink

    Remove a previously-stored piece of data.

    Remove a previously-stored piece of data.

    list

    An array or space-separated string naming the pieces of data to delete.

    returns

    the instance

  109. def removeData(name: String): JQLite.this.type

    Permalink

    Remove a previously-stored piece of data.

    Remove a previously-stored piece of data.

    name

    A string naming the piece of data to delete.

    returns

    the instance

  110. def removeData(): JQLite.this.type

    Permalink

    Remove a previously-stored piece of data.

    Remove a previously-stored piece of data.

    returns

    the instance

  111. def replaceChild(newChild: Node, existingChild: Node): Node

    Permalink
    Definition Classes
    Node
  112. def replaceWith(fn: Function): JQLite.this.type

    Permalink

    Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

    Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

    fn

    A function that returns content with which to replace the set of matched elements.

    returns

    the instance

  113. def replaceWith(newContent: Any): JQLite.this.type

    Permalink

    Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

    Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.

    newContent

    The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.

    returns

    the instance

  114. def scope(): Scope

    Permalink

    Retrieves the scope of the current element or its parent.

    Retrieves the scope of the current element or its parent. Requires Debug Data to be enabled.

    returns

    the scope

  115. def setAttribute(name: String, value: Any): Unit

    Permalink
    Definition Classes
    Element
  116. def setAttributeNS(namespace: String, name: String, value: Any): Unit

    Permalink
    Definition Classes
    Element
  117. def setAttributeNode(attr: Attr): Attr

    Permalink
    Definition Classes
    Element
  118. def setAttributeNodeNS(attr: Attr): Attr

    Permalink
    Definition Classes
    Element
  119. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  120. def tagName: String

    Permalink
    Definition Classes
    Element
  121. def text(fn: Function): JQLite.this.type

    Permalink

    Set the content of each element in the set of matched elements to the specified tex

    Set the content of each element in the set of matched elements to the specified tex

    fn

    A function returning the text content to set. Receives the index position of the element in the set and the old text value as arguments.

    returns

    the instance

  122. def text(text: Any): JQLite.this.type

    Permalink

    Set the content of each element in the set of matched elements to the specified tex

    Set the content of each element in the set of matched elements to the specified tex

    text

    The text to set as the content of each matched element. When Number or Boolean is supplied, it will be converted to a String representation.

    returns

    the instance

  123. def text(): String

    Permalink

    Get the combined text contents of each element in the set of matched elements, including their descendants.

    Get the combined text contents of each element in the set of matched elements, including their descendants.

    returns

    the instance

  124. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  125. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  126. def toggleClass(fn: Function, state: Boolean): JQLite.this.type

    Permalink

    fn

    A function that returns class names to be toggled in the class attribute of each element in the matched set. Receives the index position of the element in the set, the old class value, and the state as arguments.

    state

    A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed.

    returns

    the instance

  127. def toggleClass(fn: Function): JQLite.this.type

    Permalink

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    fn

    A function that returns class names to be toggled in the class attribute of each element in the matched set. Receives the index position of the element in the set, the old class value, and the state as arguments.

    returns

    the instance

  128. def toggleClass(state: Boolean): JQLite.this.type

    Permalink

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    state

    A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed.

    returns

    the instance

  129. def toggleClass(className: String, state: Boolean): JQLite.this.type

    Permalink

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    className

    One or more class names (separated by spaces) to be toggled for each element in the matched set.

    state

    A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed.

    returns

    the instance

  130. def toggleClass(className: String): JQLite.this.type

    Permalink

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.

    className

    One or more class names (separated by spaces) to be toggled for each element in the matched set.

    returns

    the instance

  131. def triggerHandler(event: Event, extraParameters: Any): Object

    Permalink

    Execute all handlers attached to an element for an event.

    Execute all handlers attached to an element for an event.

    event

    A jQuery.Event object.

    extraParameters

    Additional parameters to pass along to the event handler.

    returns

    an Object

  132. def triggerHandler(event: Event): Object

    Permalink

    Execute all handlers attached to an element for an event.

    Execute all handlers attached to an element for an event.

    event

    A jQuery.Event object.

    returns

    an Object

  133. def triggerHandler(eventType: String, extraParameters: Any): Object

    Permalink

    Execute all handlers attached to an element for an event.

    Execute all handlers attached to an element for an event.

    eventType

    A string containing a JavaScript event type, such as click or submit.

    extraParameters

    Additional parameters to pass along to the event handler.

    returns

    an Object

  134. def triggerHandler(eventType: String): Object

    Permalink

    Execute all handlers attached to an element for an event.

    Execute all handlers attached to an element for an event.

    eventType

    A string containing a JavaScript event type, such as click or submit.

    returns

    an Object

  135. def unbind(event: Event): JQLite.this.type

    Permalink

    Remove a previously-attached event handler from the elements.

    Remove a previously-attached event handler from the elements.

    event

    A jQuery.Event object.

    returns

    the instance

  136. def unbind(eventType: String, handler: Function2[Int, String, String]): JQLite.this.type

    Permalink

    Remove a previously-attached event handler from the elements.

    Remove a previously-attached event handler from the elements.

    eventType

    A string containing a JavaScript event type, such as click or submit.

    handler

    The function that is to be no longer executed.

    returns

    the instance

  137. def unbind(eventType: String, returnFalse: Boolean): JQLite.this.type

    Permalink

    Remove a previously-attached event handler from the elements.

    Remove a previously-attached event handler from the elements.

    eventType

    A string containing a JavaScript event type, such as click or submit.

    returnFalse

    Unbinds the corresponding 'return false' function that was bound using .bind( eventType, false ).

    returns

    the instance

  138. def unbind(eventType: String): JQLite.this.type

    Permalink

    Remove a previously-attached event handler from the elements.

    Remove a previously-attached event handler from the elements.

    eventType

    A string containing a JavaScript event type, such as click or submit.

    returns

    the instance

  139. def unbind(): JQLite.this.type

    Permalink

    Remove a previously-attached event handler from the elements.

    Remove a previously-attached event handler from the elements.

    returns

    the instance

  140. def val(fn: Function2[Int, String, String]): JQLite.this.type

    Permalink

    Set the value of each element in the set of matched elements.

    Set the value of each element in the set of matched elements.

    fn

    A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.

    returns

    the instance

  141. def val(value: Any): JQLite.this.type

    Permalink

    Set the value of each element in the set of matched elements.

    Set the value of each element in the set of matched elements.

    value

    A string of text, a number, or an array of strings corresponding to the value of each matched element to set as selected/checked.

    returns

    the instance

  142. def val(): JQLite.this.type

    Permalink

    Get the current value of the first element in the set of matched elements or set the value of every matched element.

    Get the current value of the first element in the set of matched elements or set the value of every matched element.

    returns

    the value

  143. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  144. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  145. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  146. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  147. def wrap(fn: Function): JQLite.this.type

    Permalink

    Wrap an HTML structure around each element in the set of matched elements.

    Wrap an HTML structure around each element in the set of matched elements.

    fn

    A callback function returning the HTML content or jQuery object to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.

    returns

    the instance

  148. def wrap(wrappingElement: Any): JQLite.this.type

    Permalink

    Wrap an HTML structure around each element in the set of matched elements.

    Wrap an HTML structure around each element in the set of matched elements.

    wrappingElement

    A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements. When you pass a jQuery collection containing more than one element, or a selector matching more than one element, the first element will be used.

    returns

    the instance

Inherited from HTMLElement

Inherited from Element

Inherited from ParentNode

Inherited from Node

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped