trait JQLite extends HTMLElement
JQuery Lite
- Annotations
- @RawJSType() @native()
- See also
- Alphabetic
- By Inheritance
- JQLite
- HTMLElement
- Element
- ParentNode
- Node
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addClass(fn: Function1[Int, String]): JQLite.this.type
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
-
def
addClass(fn: Function2[Int, String, String]): JQLite.this.type
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
-
def
addClass(className: String): JQLite.this.type
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
-
def
after(content: String*): JQLite.this.type
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
-
def
append(content: String*): JQLite.this.type
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
-
def
append(nodes: |[Node, String]*): JQLite.this.type
- Definition Classes
- ParentNode
-
def
appendChild(node: Node): Node
- Definition Classes
- Node
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
attr(attributeName: String): JQLite.this.type
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
-
def
attributes: NamedNodeMap[Attr]
- Definition Classes
- Node
-
def
bind(events: Object): JQLite.this.type
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
-
def
bind(eventType: String, eventData: Any): JQLite.this.type
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
-
def
bind(eventType: String, eventData: Any = js.native, preventBubble: Boolean): JQLite.this.type
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
-
def
bind(eventType: String, eventData: Any, handler: Function1[Event, Unit]): JQLite.this.type
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
-
def
blur(): Unit
- Definition Classes
- HTMLElement
-
def
childElementCount: UnsignedLong
- Definition Classes
- ParentNode
-
def
childNodes[T <: Node]: NodeList[T]
- Definition Classes
- Node
-
def
children(selector: String = js.native): JQLite.this.type
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
-
def
children: HTMLCollection[Element]
- Definition Classes
- ParentNode
-
def
click(): Unit
- Definition Classes
- HTMLElement
-
def
clone(withDataAndEvents: Boolean = js.native): JQLite.this.type
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
cloneNode(deep: Boolean): JQLite.this.type
- Definition Classes
- Node
-
def
contents(): JQLite
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
-
def
controller[T <: Object](name: String = js.native): T
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
-
def
css(propertyNames: Array[String]): String
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
-
def
css(propertyName: String): String
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
-
def
css(): String
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
-
def
data(obj: Object): JQLite
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
-
def
data(key: String, value: Any): JQLite
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
-
def
detach(selector: Any = js.native): JQLite.this.type
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
-
def
empty(): JQLite.this.type
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
-
def
eq(index: Int): JQLite.this.type
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(element: JQLite): Element
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
-
def
find(element: Element): Element
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
-
def
find[T](selector: String): T
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
-
def
firstChild[T <: Node]: T
- Definition Classes
- Node
-
def
firstElementChild: Element
- Definition Classes
- ParentNode
-
def
focus(): Unit
- Definition Classes
- HTMLElement
-
def
getAttribute(name: String): String
- Definition Classes
- Element
-
def
getAttributeNS(namespace: String, name: String): Attr
- Definition Classes
- Element
-
def
getAttributeNode(name: String): Attr
- Definition Classes
- Element
-
def
getAttributeNodeNS(namespace: String, name: String): Attr
- Definition Classes
- Element
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getElementsByTagName[T <: Element](name: String): HTMLCollection[T]
- Definition Classes
- Element
-
def
getElementsByTagNameNS[T <: Element](namespace: String, name: String): HTMLCollection[T]
- Definition Classes
- Element
-
def
hasAttribute(namespace: String, name: String): Boolean
- Definition Classes
- Element
-
def
hasAttribute(name: String): Boolean
- Definition Classes
- Element
-
def
hasAttributes(): Boolean
- Definition Classes
- Node
-
def
hasChildNodes(): Boolean
- Definition Classes
- Node
-
def
hasClass(className: String): Boolean
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.
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
html(element: Any): String
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
-
def
html(): String
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
- def inheritedData(): Any
- def inheritedData[T <: Any](key: String): UndefOr[T]
- def inheritedData(obj: Object): JQLite
-
def
inheritedData(key: String, value: Any): JQLite
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
-
def
injector(): Injector
Retrieves the injector of the current element or its parent.
Retrieves the injector of the current element or its parent.
- returns
the injector
-
def
insertBefore(newNode: Node, existingChild: Node): Node
- Definition Classes
- Node
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
isSupported(feature: String, version: String): Boolean
- Definition Classes
- Node
-
def
isolateScope(): Scope
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
-
def
lastChild: Node
- Definition Classes
- Node
-
def
lastElementChild: Element
- Definition Classes
- ParentNode
-
def
localName: String
- Definition Classes
- Node
-
def
namespaceURI: String
- Definition Classes
- Node
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
next(selector: String = js.native): JQLite.this.type
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
-
def
nextSibling: Node
- Definition Classes
- Node
-
def
nodeName: String
- Definition Classes
- Node
-
def
nodeType: NodeType
- Definition Classes
- Node
-
def
nodeValue: Any
- Definition Classes
- Node
-
def
normalize(): Unit
- Definition Classes
- Node
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
off(events: String, selector: String = js.native, handler: Function1[Event, Unit] = js.native): JQLite.this.type
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
-
def
on(events: String, selector: String = js.native, data: Any = js.native, handler: Function = js.native): JQLite.this.type
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
-
def
one(events: String, data: Any = js.native, handler: Function1[Event, Unit] = js.native): JQLite.this.type
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
-
def
ownerDocument: Document
- Definition Classes
- Node
-
def
parent(selector: String = js.native): JQLite.this.type
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
-
def
parentNode: Node
- Definition Classes
- Node
-
def
prefix: String
- Definition Classes
- Node
-
def
prepend(fn: Function): JQLite.this.type
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
-
def
prepend(content: Any, content1: Any*): JQLite.this.type
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
-
def
prepend(nodes: |[Node, String]*): JQLite.this.type
- Definition Classes
- ParentNode
-
def
previousSibling: Node
- Definition Classes
- Node
-
def
prop(propertyName: String, value: Any): JQLite.this.type
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
-
def
prop[T <: Any](propertyName: String): T
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
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
ready(handler: Function): JQLite.this.type
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
-
def
remove(selector: String): JQLite.this.type
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
-
def
removeAttr(attributeName: String): JQLite.this.type
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
-
def
removeAttribute(name: String): Unit
- Definition Classes
- Element
-
def
removeAttributeNS(namespace: String, name: String): Unit
- Definition Classes
- Element
-
def
removeAttributeNode(attr: Attr): Attr
- Definition Classes
- Element
-
def
removeChild(oldNode: Node): Unit
- Definition Classes
- Node
-
def
removeClass(fn: Function): JQLite.this.type
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
-
def
removeClass(className: String = js.native): JQLite.this.type
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
-
def
removeData(list: Array[String] = js.native): JQLite.this.type
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
-
def
removeData(name: String): JQLite.this.type
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
-
def
removeData(): JQLite.this.type
Remove a previously-stored piece of data.
Remove a previously-stored piece of data.
- returns
the instance
-
def
replaceChild(newChild: Node, existingChild: Node): Node
- Definition Classes
- Node
-
def
replaceWith(fn: Function): JQLite.this.type
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
-
def
replaceWith(newContent: Any): JQLite.this.type
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
-
def
scope(): Scope
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
-
def
setAttribute(name: String, value: Any): Unit
- Definition Classes
- Element
-
def
setAttributeNS(namespace: String, name: String, value: Any): Unit
- Definition Classes
- Element
-
def
setAttributeNode(attr: Attr): Attr
- Definition Classes
- Element
-
def
setAttributeNodeNS(attr: Attr): Attr
- Definition Classes
- Element
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tagName: String
- Definition Classes
- Element
-
def
text(fn: Function): JQLite.this.type
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
-
def
text(text: Any): JQLite.this.type
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
-
def
text(): String
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
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
toggleClass(fn: Function, state: Boolean): JQLite.this.type
- 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
-
def
toggleClass(fn: Function): JQLite.this.type
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
-
def
toggleClass(state: Boolean): JQLite.this.type
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
-
def
toggleClass(className: String, state: Boolean): JQLite.this.type
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
-
def
toggleClass(className: String): JQLite.this.type
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
-
def
triggerHandler(event: Event, extraParameters: Any): Object
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
-
def
triggerHandler(event: Event): Object
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
-
def
triggerHandler(eventType: String, extraParameters: Any): Object
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
-
def
triggerHandler(eventType: String): Object
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
-
def
unbind(event: Event): JQLite.this.type
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
-
def
unbind(eventType: String, handler: Function2[Int, String, String]): JQLite.this.type
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
-
def
unbind(eventType: String, returnFalse: Boolean): JQLite.this.type
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
-
def
unbind(eventType: String): JQLite.this.type
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
-
def
unbind(): JQLite.this.type
Remove a previously-attached event handler from the elements.
Remove a previously-attached event handler from the elements.
- returns
the instance
-
def
val(fn: Function2[Int, String, String]): JQLite.this.type
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
-
def
val(value: Any): JQLite.this.type
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
-
def
val(): JQLite.this.type
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
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
wrap(fn: Function): JQLite.this.type
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
-
def
wrap(wrappingElement: Any): JQLite.this.type
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