Class

org.querki.jquery

JQueryExtensions

Related Doc: package jquery

Permalink

class JQueryExtensions extends AnyRef

These are extensions to jQuery -- useful higher-level functions, which mostly tighten up the types.

Basically, when you want to express a common idiom, especially one that is particularly helpful in the Scala environment, it belongs here. But this isn't for complex high-level logic, just for stuff that makes JQuery easier to use in Scala.

Within those constraints, pull requests are welcome for additional utility functions that seem to be at the same level.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JQueryExtensions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JQueryExtensions(jq: JQuery)

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def dataString(name: String): String

    Permalink

    Fetch this data value as a String.

    Fetch this data value as a String.

    You should only call this if you *know* with confidence that this data field is set, and that the value is String; it will crash otherwise.

  7. def detachReplaceWith(e: Element): JQuery

    Permalink

    JQuery's native replaceWith is useful *if* you are planning on throwing away the node you're replacing.

    JQuery's native replaceWith is useful *if* you are planning on throwing away the node you're replacing. But if you're going to want to restore it, it's bad because it *removes* the old element from the DOM, losing its data and stuff. So this is a similar function, which *detaches* the old element instead of removing it.

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def foreach(func: (Element) ⇒ Unit): JQuery

    Permalink

    Execute the given code over each Element in the returned set.

    Execute the given code over each Element in the returned set. This is just convenience sugar around $.each(), but is typically easier to use.

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def mapElems[T](func: (Element) ⇒ T): Seq[T]

    Permalink

    Wrap $.map in something more idiomatic and convenient for Scala

    Wrap $.map in something more idiomatic and convenient for Scala

    This applies the given function to each element in this JQuery object, and returns the results. Note that, unlike JQuery.map(), this produces the unwrapped results, since that is typically what you want in Scala code.

  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. def valueString: String

    Permalink

    The value of this Element; use this when it can only make sense as a String in context, and when you are confident that the value is set.

  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped