object JsCmds
- Alphabetic
- By Inheritance
- JsCmds
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class After(time: util.Helpers.TimeSpan, toDo: JsCmd) extends JsCmd with Product with Serializable
- case class Alert(text: String) extends JsCmd with Product with Serializable
- case class CmdPair(left: JsCmd, right: JsCmd) extends JsCmd with Product with Serializable
- case class Confirm(text: String, yes: JsCmd) extends JsCmd with Product with Serializable
- case class Focus(id: String) extends JsCmd with Product with Serializable
Sets the focus on the element denominated by the id
- trait HasTime extends AnyRef
- case class JsCrVar(name: String, right: JsExp) extends JsCmd with Product with Serializable
Creates a JavaScript var named by 'name' and assigns it the value of 'right' expression.
- case class JsDoWhile(body: JsExp, condition: JsExp) extends JsCmd with Product with Serializable
- case class JsFor(initialExp: JsExp, condition: JsExp, incrementExp: JsExp, body: JsExp) extends JsCmd with Product with Serializable
- case class JsForIn(initialExp: JsExp, reference: String, body: JsCmd) extends JsCmd with Product with Serializable
- case class JsSchedule(what: JsCmd) extends JsCmd with Product with Serializable
JsSchedule the execution of the JsCmd using setTimeout()
JsSchedule the execution of the JsCmd using setTimeout()
- what
the code to execute
- case class JsTry(what: JsCmd, alert: Boolean) extends JsCmd with Product with Serializable
- case class JsWhile(condition: JsExp, body: JsExp) extends JsCmd with Product with Serializable
- case class JsWith(reference: String, body: JsExp) extends JsCmd with Product with Serializable
- case class Prompt(text: String, default: String = "") extends JsExp with Product with Serializable
- case class RedirectTo(where: String) extends JsCmd with Product with Serializable
- case class Replace(id: String, content: NodeSeq) extends JsCmd with Product with Serializable
Replaces the node having the provided id with the markup given by node
Replaces the node having the provided id with the markup given by node
- id
- the id of the node that will be replaced
- case class ReplaceOptions(select: String, opts: List[(String, String)], dflt: Box[String]) extends JsCmd with Product with Serializable
Update a Select with new Options
- case class Run(text: String) extends JsCmd with Product with Serializable
- case class SetElemById(id: String, right: JsExp, thenStr: String*) extends JsCmd with Product with Serializable
Assigns the value of 'right' to the members of the element having this 'id', chained by 'then' sequences
- case class SetExp(left: JsExp, right: JsExp) extends JsCmd with Product with Serializable
Assigns the value computed by the 'right' expression to the 'left' expression.
- case class SetHtml(uid: String, content: NodeSeq) extends JsCmd with Product with Serializable
Replaces the content of the node with the provided id with the markup given by content
Replaces the content of the node with the provided id with the markup given by content
This is analogous to assigning a new value to a DOM object's innerHtml property in Javascript.
- content
- the new content
- case class SetValById(id: String, right: JsExp) extends JsCmd with Product with Serializable
Sets the value to the element having the 'id' attribute with the result of the 'right' expression
- case class SetValueAndFocus(id: String, value: String) extends JsCmd with Product with Serializable
Sets the value of an element and sets the focus
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 JsHideId(what: String): JsCmd
- def JsShowId(what: String): JsCmd
- def Noop: JsCmd
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- implicit def cmdToString(in: JsCmd): String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def jsExpToJsCmd(in: JsExp): JsCmd
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit def seqJsToJs(in: Seq[JsCmd]): JsCmd
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object Function
Creates a JavaScript function with a name, a parameters list and a function body
- case object JsBreak extends JsCmd with Product with Serializable
- case object JsContinue extends JsCmd with Product with Serializable
- case object JsIf extends Product with Serializable
- object JsReturn
- object OnLoad
Execute the 'what' code when the page is ready for use
- object RedirectTo extends Serializable
A companion object with a helpful alternative constructor
- case object Reload extends JsCmd with Product with Serializable
Reload the current page
- object Script
- case object _Noop extends JsCmd with Product with Serializable
Deprecated Value Members
- object FocusOnLoad
Makes the parameter the selected HTML element on load of the page
Makes the parameter the selected HTML element on load of the page
- returns
the element and a script that will give the element focus
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0) Use S.appendJs(Focus(id))