net.liftweb.http

SHtml

object SHtml extends SHtml

The SHtml object defines a suite of XHTML element generator methods to simplify the creation of markup, particularly with forms and AJAX.

go to: companion
linear super types: SHtml, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SHtml
  2. SHtml
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. trait AreaShape extends AnyRef

  2. case class BasicElemAttr (name: String, value: String) extends ElemAttr with Product

    Any old attribute.

  3. case class ChoiceHolder [T] (items: Seq[ChoiceItem[T]]) extends Product

    Holds a series of choices: HTML for input controls alongside some user defined value

  4. case class ChoiceItem [T] (key: T, xhtml: NodeSeq) extends Product

    Holds a form control as HTML along with some user defined value

  5. case class CirclePercentShape (centerX: Int, centerY: Int, radiusPercent: Int) extends AreaShape with Product

  6. case class CircleShape (centerX: Int, centerY: Int, radius: Int) extends AreaShape with Product

  7. trait ElemAttr extends (Elem) ⇒ Elem

    An attribute that can be applied to an element.

  8. trait PairStringPromoter [T] extends (T) ⇒ String

    Convert a T to a String for display in Select, MultiSelect, etc.

  9. case class PolyShape (polyCoords: (Int, Int)*) extends AreaShape with Product

  10. case class RectShape (left: Int, top: Int, right: Int, bottom: Int) extends AreaShape with Product

Value Members

  1. def != (arg0: AnyRef) : Boolean

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  7. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  8. object ChoiceHolder extends AnyRef

  9. object ElemAttr extends AnyRef

    The companion object that has some very helpful conversion

  10. object PairStringPromoter extends AnyRef

    A companion object that does implicit conversions

  11. def a (body: NodeSeq, cmd: JsCmd, attrs: ElemAttr*) : Elem

    Create an anchor that will run a JavaScript command when clicked

    Create an anchor that will run a JavaScript command when clicked

    definition classes: SHtml
  12. def a (jsFunc: Call, body: NodeSeq, attrs: ElemAttr*)(func: ⇒ JsCmd) : Elem

    Create an anchor with a body and the function to be executed when the anchor is clicked

    Create an anchor with a body and the function to be executed when the anchor is clicked

    jsFunc

    -- the user function that will be executed. This function will receive as last parameter the function that will actually do the ajax call. Hence the user function can decide when to make the ajax request.

    body

    - the NodeSeq to wrap in the anchor tag

    attrs

    - the anchor node attributes

    definition classes: SHtml
  13. def a (body: NodeSeq, attrs: ElemAttr*)(func: ⇒ JsCmd) : Elem

    Create an anchor with a body and the function to be executed when the anchor is clicked

    Create an anchor with a body and the function to be executed when the anchor is clicked

    definition classes: SHtml
  14. def a (func: () ⇒ JsObj, jsonContext: JsonContext, body: NodeSeq, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  15. def a (jsFunc: Call, func: () ⇒ JsCmd, body: NodeSeq, attrs: ElemAttr*) : Elem

    Create an anchor tag around a body which will do an AJAX call and invoke the function

    Create an anchor tag around a body which will do an AJAX call and invoke the function

    jsFunc

    -- the user function that will be executed. This function will receive as last parameter the function that will actually do the ajax call. Hence the user function can decide when to make the ajax request.

    func

    - the function to invoke when the link is clicked

    body

    - the NodeSeq to wrap in the anchor tag

    attrs

    - the anchor node attributes

    definition classes: SHtml
  16. def a (func: () ⇒ JsCmd, body: NodeSeq, attrs: ElemAttr*) : Elem

    Create an anchor tag around a body which will do an AJAX call and invoke the function

    Create an anchor tag around a body which will do an AJAX call and invoke the function

    func

    - the function to invoke when the link is clicked

    body

    - the NodeSeq to wrap in the anchor tag

    attrs

    - the anchor node attributes

    definition classes: SHtml
  17. def ajaxButton (text: String, jsFunc: Call, func: () ⇒ JsCmd, attrs: ElemAttr*) : Elem

    Create an Ajax button.

    Create an Ajax button. When it's pressed, the function is executed

    text

    -- the name/text of the button

    func

    -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.

    returns

    a button to put on your page

    definition classes: SHtml
  18. def ajaxButton (text: String, func: () ⇒ JsCmd, attrs: ElemAttr*) : Elem

    Create an Ajax button.

    Create an Ajax button. When it's pressed, the function is executed

    text

    -- the name/text of the button

    func

    -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.

    returns

    a button to put on your page

    definition classes: SHtml
  19. def ajaxButton (text: NodeSeq, jsFunc: Call, func: () ⇒ JsCmd, attrs: ElemAttr*) : Elem

    Create an Ajax button.

    Create an Ajax button. When it's pressed, the function is executed

    text

    -- the name/text of the button

    jsFunc

    -- the user function that will be executed. This function will receive as last parameter the function that will actually do the ajax call. Hence the user function can decide when to make the ajax request.

    func

    -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.

    returns

    a button to put on your pagejsFunc.params ++ List(AnonFunc(makeAjaxCall(Str(name+"=true"))))

    definition classes: SHtml
  20. def ajaxButton (text: NodeSeq, jsExp: JsExp, func: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    Create an Ajax button.

    Create an Ajax button. When it's pressed, the function is executed

    text

    -- the name/text of the button

    func

    -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.

    attrs

    -- the list of node attributes

    returns

    a button to put on your page

    definition classes: SHtml
  21. def ajaxButton (text: NodeSeq, func: () ⇒ JsCmd, attrs: ElemAttr*) : Elem

    Create an Ajax button.

    Create an Ajax button. When it's pressed, the function is executed

    text

    -- the name/text of the button

    func

    -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.

    attrs

    -- the list of node attributes

    returns

    a button to put on your page

    definition classes: SHtml
  22. def ajaxCall (jsCalcValue: JsExp, jsContext: JsContext, func: (String) ⇒ JsCmd) : (String, JsExp)

    Build a JavaScript function that will perform an AJAX call based on a value calculated in JavaScript

    Build a JavaScript function that will perform an AJAX call based on a value calculated in JavaScript

    jsCalcValue

    the JavaScript that will be executed on the client to calculate the value to be sent to the server

    jsContext

    the context instance that defines JavaScript to be executed on call success or failure

    func

    the function to call when the data is sent

    returns

    the function ID and JavaScript that makes the call

    definition classes: SHtml
  23. def ajaxCall (jsCalcValue: JsExp, func: (String) ⇒ JsCmd) : (String, JsExp)

    Build a JavaScript function that will perform an AJAX call based on a value calculated in JavaScript

    Build a JavaScript function that will perform an AJAX call based on a value calculated in JavaScript

    jsCalcValue

    the JavaScript that will be executed on the client to calculate the value to be sent to the server

    func

    the function to call when the data is sent

    returns

    the function ID and JavaScript that makes the call

    definition classes: SHtml
  24. def ajaxCheckbox (value: Boolean, jsFunc: Call, func: (Boolean) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  25. def ajaxCheckbox (value: Boolean, func: (Boolean) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  26. def ajaxCheckboxElem (settable: Settable {...}, jsFunc: Call, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  27. def ajaxCheckboxElem (settable: Settable {...}, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  28. def ajaxEditable (displayContents: ⇒ NodeSeq, editForm: ⇒ NodeSeq, onSubmit: () ⇒ JsCmd) : NodeSeq

    This method generates an AJAX editable field.

    This method generates an AJAX editable field.

    Normally, the displayContents will be shown, with an "Edit" button. If the "Edit" button is clicked, the field will be replaced with the edit form, along with an "OK" and "Cancel" button. If the OK button is pressed, the form fields are submitted and the onSubmit function is called, and then the displayContents are re-run to get a new display. If cancel is pressed then the original displayContents are re-shown.

    Note that the editForm NodeSeq is wrapped inside of an ajaxForm, so it can be comprised of normal (non-AJAX) SHtml form elements. For example:

    ajaxEditable(Test("Click me"),
                 SHtml.text("Edit me", s => println("Edited with " +s)),
                 () => { println("submitted"); Noop })

    definition classes: SHtml
  29. def ajaxForm (body: NodeSeq, onSubmit: JsCmd, postSubmit: JsCmd) : Elem

    Takes a form and wraps it so that it will be submitted via AJAX.

    Takes a form and wraps it so that it will be submitted via AJAX. This also takes a parameter for script code that will be executed after the form has been submitted.

    body

    The form body. This should not include the <form> tag.

    postSubmit

    Code that should be executed after a successful submission

    definition classes: SHtml
  30. def ajaxForm (body: NodeSeq, onSubmit: JsCmd) : Elem

    Takes a form and wraps it so that it will be submitted via AJAX.

    Takes a form and wraps it so that it will be submitted via AJAX.

    body

    The form body. This should not include the <form> tag.

    onSubmit

    JavaScript code to execute on the client prior to submission

    definition classes: SHtml
  31. def ajaxForm (onSubmit: JsCmd, body: NodeSeq) : Elem

    Takes a form and wraps it so that it will be submitted via AJAX.

    Takes a form and wraps it so that it will be submitted via AJAX.

    onSubmit

    JavaScript code to execute on the client prior to submission

    body

    The form body. This should not include the <form> tag.

    definition classes: SHtml
      deprecated:
    1. Use ajaxForm(NodeSeq,JsCmd) instead

  32. def ajaxForm (body: NodeSeq) : Elem

    Takes a form and wraps it so that it will be submitted via AJAX.

    Takes a form and wraps it so that it will be submitted via AJAX.

    body

    The form body. This should not include the <form> tag.

    definition classes: SHtml
  33. def ajaxInvoke (func: () ⇒ JsCmd) : (String, JsExp)

    definition classes: SHtml
  34. def ajaxRadio [T] (opts: Seq[T], deflt: Box[T], ajaxFunc: (T) ⇒ JsCmd, attrs: ElemAttr*) : ChoiceHolder[T]

    Make a set of Ajax radio buttons.

    Make a set of Ajax radio buttons. When the buttons are pressed, the function is called

    opts

    -- The possible values. These are not revealed to the browser

    deflt

    -- the default button

    ajaxFunc

    -- the function to invoke when the button is pressed

    definition classes: SHtml
  35. def ajaxSelect (opts: Seq[(String, String)], deflt: Box[String], jsFunc: Call, func: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  36. def ajaxSelect (opts: Seq[(String, String)], deflt: Box[String], func: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  37. def ajaxSelectElem [T] (options: Seq[T], default: Box[T], jsFunc: Call, attrs: ElemAttr*)(onSubmit: (T) ⇒ JsCmd)(implicit f: PairStringPromoter[T]) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    options

    -- a list of value and text pairs (value, text to display)

    default

    -- the default value (or Empty if no default value)

    onSubmit

    -- the function to execute on form submission

    definition classes: SHtml
  38. def ajaxSelectElem [T] (options: Seq[T], default: Box[T], attrs: ElemAttr*)(onSubmit: (T) ⇒ JsCmd)(implicit f: PairStringPromoter[T]) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    options

    -- a list of value and text pairs (value, text to display)

    default

    -- the default value (or Empty if no default value)

    onSubmit

    -- the function to execute on form submission

    definition classes: SHtml
  39. def ajaxSelectObj [T] (options: Seq[(T, String)], default: Box[T], jsFunc: Call, onSubmit: (T) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    options

    -- a list of value and text pairs (value, text to display)

    default

    -- the default value (or Empty if no default value)

    onSubmit

    -- the function to execute on form submission

    definition classes: SHtml
  40. def ajaxSelectObj [T] (options: Seq[(T, String)], default: Box[T], onSubmit: (T) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    options

    -- a list of value and text pairs (value, text to display)

    default

    -- the default value (or Empty if no default value)

    onSubmit

    -- the function to execute on form submission

    definition classes: SHtml
  41. def ajaxSubmit (value: String, func: () ⇒ JsCmd, attrs: ElemAttr*) : Elem

    Constructs an Ajax submit button that can be used inside ajax forms.

    Constructs an Ajax submit button that can be used inside ajax forms. Multiple buttons can be used in the same form.

    value

    - the button text

    func

    - the ajax function to be called

    attrs

    - button attributes

    definition classes: SHtml
  42. def ajaxText (value: String, ignoreBlur: Boolean, jsFunc: Call, func: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  43. def ajaxText (value: String, ignoreBlur: Boolean, func: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  44. def ajaxText (value: String, jsFunc: Call, func: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  45. def ajaxText (value: String, func: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  46. def ajaxTextElem (settable: Settable {...}, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  47. def ajaxTextarea (value: String, jsFunc: Call, func: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  48. def ajaxTextarea (value: String, func: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  49. def area (shape: AreaShape, func: () ⇒ JsCmd, alt: String, attrs: ElemAttr*) : Elem

    Generate an Area tag

    Generate an Area tag

    shape

    - the shape of the area (RectShape, CircleShape, CirclePercentShape, PolyShape)

    func

    - The server side function to execute when the area is clicked on.

    alt

    - the contents of the alt attribute

    attrs

    - the balance of the attributes for the tag

    definition classes: SHtml
  50. def area (shape: AreaShape, jsCmd: JsCmd, alt: String, attrs: ElemAttr*) : Elem

    Generate an Area tag

    Generate an Area tag

    shape

    - the shape of the area (RectShape, CircleShape, CirclePercentShape, PolyShape)

    jsCmd

    - the JavaScript to execute on the client when the area is clicked

    alt

    - the contents of the alt attribute

    attrs

    - the balance of the attributes for the tag

    definition classes: SHtml
  51. def area (shape: AreaShape, alt: String, attrs: ElemAttr*) : Elem

    Generate an Area tag

    Generate an Area tag

    shape

    - the shape of the area (RectShape, CircleShape, CirclePercentShape, PolyShape)

    alt

    - the contents of the alt attribute

    attrs

    - the balance of the attributes for the tag

    definition classes: SHtml
  52. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  53. def button (strOrNodeSeq: StringOrNodeSeq, func: () ⇒ Any, attrs: ElemAttr*) : Elem

    Create an HTML button with strOrNodeSeq as the body.

    Create an HTML button with strOrNodeSeq as the body. The button will be type submit.

    strOrNodeSeq

    -- the String or NodeSeq (either will work just fine) to put into the body of the button

    func

    -- the function to execute when the form containing the button is posted

    attrs

    -- the attributes to append to the button

    returns

    a button HTML Element b

    definition classes: SHtml
  54. def checkbox (value: Boolean, func: (Boolean) ⇒ Any, attrs: ElemAttr*) : NodeSeq

    Defines a new checkbox set to { @code value } and running { @code func } when the checkbox is submitted.

    Defines a new checkbox set to { @code value } and running { @code func } when the checkbox is submitted.

    definition classes: SHtml
  55. def checkbox [T] (possible: Seq[T], actual: Seq[T], func: (Seq[T]) ⇒ Any, attrs: ElemAttr*) : ChoiceHolder[T]

    Generate a ChoiceHolder of possible checkbox type inputs that calls back to the given function when the form is submitted.

    Generate a ChoiceHolder of possible checkbox type inputs that calls back to the given function when the form is submitted.

    possible

    complete sequence of possible values, each a separate checkbox when rendered

    actual

    values to be preselected

    func

    function to receive all values corresponding to the checked boxes

    attrs

    sequence of attributes to apply to each checkbox input element

    returns

    ChoiceHolder containing the checkboxes and values in order

    definition classes: SHtml
  56. def checkboxElem (settable: Settable {...}, attrs: ElemAttr*) : NodeSeq

    Defines a new checkbox for the Settable

    Defines a new checkbox for the Settable

    definition classes: SHtml
  57. def checkbox_* (value: Boolean, func: AFuncHolder, id: Box[String], attrs: ElemAttr*) : NodeSeq

    definition classes: SHtml
  58. def checkbox_id (value: Boolean, func: (Boolean) ⇒ Any, id: Box[String], attrs: ElemAttr*) : NodeSeq

    Defines a new checkbox set to { @code value } and running { @code func } when the checkbox is submitted.

    Defines a new checkbox set to { @code value } and running { @code func } when the checkbox is submitted. Has an id of { @code id }.

    definition classes: SHtml
  59. def checkbox_id (settable: Settable {...}, id: Box[String], attrs: ElemAttr*) : NodeSeq

    Defines a new checkbox for the Settable

    Defines a new checkbox for the Settable

    definition classes: SHtml
  60. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  61. def email (settable: Settable {...}, attrs: ElemAttr*) : Elem

    Generate an email input element for the Settable.

    Generate an email input element for the Settable. At some point there will be graceful fallback for non-HTML5 browsers. FIXME

    definition classes: SHtml
  62. def email (value: String, func: (String) ⇒ Any, attrs: ElemAttr*) : Elem

    Generate an input field with type email.

    Generate an input field with type email. At some point, there will be graceful fallback for non-HTML5 browsers. FIXME

    definition classes: SHtml
  63. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  64. def equals (arg0: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  65. def fajaxCall [T] (jsCalcValue: JsExp, func: (String) ⇒ JsCmd)(f: (String, JsExp) ⇒ T) : T

    definition classes: SHtml
  66. def fileUpload (func: (FileParamHolder) ⇒ Any, attrs: ElemAttr*) : Elem

    Defines a form element for a file upload that will call the specified function when the file is uploaded if the file size is greater than zero.

    Defines a form element for a file upload that will call the specified function when the file is uploaded if the file size is greater than zero. Note that in order to use the fileUpload element you need to specify the multipart attribute on your snippet tag:

    <lift:Some.snippet form="POST" multipart="true">
    ...
    </lift:Some.snippet>

    definition classes: SHtml
  67. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  68. def fjsonCall [T] (jsCalcValue: JsExp, jsonContext: JsonContext, func: (String) ⇒ JsObj)(f: (String, JsExp) ⇒ T) : T

    definition classes: SHtml
  69. def getClass () : java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  70. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  71. def hidden (func: (String) ⇒ Any, defaultlValue: String, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  72. def hidden (func: () ⇒ Any, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  73. def hidden_* (func: AFuncHolder, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  74. def hrefFunc (func: () ⇒ Any) : (NodeSeq) ⇒ NodeSeq

    If you want to update the href of an &lt;a> tag, this method returns a function that mutates the href by adding a function that will be executed when the link is clicked: <code> "#my_link" #> SHtml.

    If you want to update the href of an &lt;a> tag, this method returns a function that mutates the href by adding a function that will be executed when the link is clicked: <code> "#my_link" #> SHtml.hrefFunc(() => println("howdy")) </code>

    definition classes: SHtml
  75. def idMemoize (f: (IdMemoizeTransform) ⇒ NodeSeqFuncOrSeqNodeSeqFunc) : IdMemoizeTransform

    Memoize the NodeSeq used in apply() and then call applyAgain() in an Ajax call and you don't have to explicitly capture the template

    Memoize the NodeSeq used in apply() and then call applyAgain() in an Ajax call and you don't have to explicitly capture the template

    definition classes: SHtml
  76. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  77. def jsonButton (text: NodeSeq, jsExp: JsExp, func: (Any) ⇒ JsObj, ajaxContext: JsonContext, attrs: ElemAttr*) : Elem

    Create an Ajax buttun that when it's pressed it submits an Ajax request and expects back a JSON construct which will be passed to the success function

    Create an Ajax buttun that when it's pressed it submits an Ajax request and expects back a JSON construct which will be passed to the success function

    text

    -- the name/text of the button

    func

    -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.

    ajaxContext

    -- defines the callback functions and the JSON response type

    attrs

    -- the list of node attributes

    returns

    a button to put on your page

    definition classes: SHtml
  78. def jsonButton (text: NodeSeq, func: () ⇒ JsObj, ajaxContext: JsonContext, attrs: ElemAttr*) : Elem

    Create an Ajax buttun that when it's pressed it submits an Ajax request and expects back a JSON construct which will be passed to the success function

    Create an Ajax buttun that when it's pressed it submits an Ajax request and expects back a JSON construct which will be passed to the success function

    text

    -- the name/text of the button

    func

    -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.

    ajaxContext

    -- defines the callback functions and the JSON response type

    attrs

    -- the list of node attributes

    returns

    a button to put on your page

    definition classes: SHtml
  79. def jsonCall (jsCalcValue: JsExp, jsonContext: JsonContext, func: (String) ⇒ JsObj) : (String, JsExp)

    definition classes: SHtml
  80. def jsonCall (jsCalcValue: JsExp, jsContext: JsContext, func: (Any) ⇒ JsCmd) : (String, JsExp)

    Build a JavaScript function that will perform a JSON call based on a value calculated in JavaScript

    Build a JavaScript function that will perform a JSON call based on a value calculated in JavaScript

    jsCalcValue

    the JavaScript to calculate the value to be sent to the server

    jsContext

    the context instance that defines JavaScript to be executed on call success or failure

    func

    the function to call when the data is sent

    returns

    the function ID and JavaScript that makes the call

    definition classes: SHtml
  81. def jsonCall (jsCalcValue: JsExp, func: (Any) ⇒ JsCmd) : (String, JsExp)

    Build a JavaScript function that will perform a JSON call based on a value calculated in JavaScript

    Build a JavaScript function that will perform a JSON call based on a value calculated in JavaScript

    jsCalcValue

    the JavaScript to calculate the value to be sent to the server

    func

    the function to call when the data is sent

    returns

    the function ID and JavaScript that makes the call

    definition classes: SHtml
  82. def jsonForm (jsonHandler: JsonHandler, onSubmit: JsCmd, body: NodeSeq) : NodeSeq

    Takes a form and wraps it so that it will be submitted via AJAX and processed by a JSON handler.

    Takes a form and wraps it so that it will be submitted via AJAX and processed by a JSON handler. This can be useful if you may have dynamic client-side modification of the form (addition or removal).

    jsonHandler

    The handler that will process the form

    onSubmit

    JavaScript code that will be executed on the client prior to submitting the form

    body

    The form body. This should not include the &lt;form&gt; tag.

    definition classes: SHtml
  83. def jsonForm (jsonHandler: JsonHandler, body: NodeSeq) : NodeSeq

    Takes a form and wraps it so that it will be submitted via AJAX and processed by a JSON handler.

    Takes a form and wraps it so that it will be submitted via AJAX and processed by a JSON handler. This can be useful if you may have dynamic client-side modification of the form (addition or removal).

    jsonHandler

    The handler that will process the form

    body

    The form body. This should not include the &lt;form&gt; tag.

    definition classes: SHtml
  84. def jsonText (value: String, cmd: String, json: JsonCall, attrs: ElemAttr*) : Elem

    Create a JSON text widget that makes a JSON call on blur or "return".

    Create a JSON text widget that makes a JSON call on blur or "return".

    value

    - the initial value of the text field

    cmd

    - the json command name

    json

    - the JsonCall returned from S.buildJsonFunc

    returns

    a text field

    definition classes: SHtml
  85. def jsonText (value: String, json: (JsExp) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    This function does not really submit a JSON request to server instead json is a function that allows you to build a more complex JsCmd based on the JsExp JE.

    This function does not really submit a JSON request to server instead json is a function that allows you to build a more complex JsCmd based on the JsExp JE.JsRaw("this.value"). This function is called by the overloaded version of jsonText.

    value

    - the initial value of the text field

    json

    - takes a JsExp which describes how to recover the value of the text field and returns a JsExp containing the thing to execute on blur/return

    returns

    a text field

    definition classes: SHtml
  86. def jsonText (value: String, ignoreBlur: Boolean, json: (JsExp) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    This function does not really submit a JSON request to server instead json is a function that allows you to build a more complex JsCmd based on the JsExp JE.

    This function does not really submit a JSON request to server instead json is a function that allows you to build a more complex JsCmd based on the JsExp JE.JsRaw("this.value"). This function is called by the overloaded version of jsonText.

    value

    - the initial value of the text field

    ignoreBlur

    - ignore the onblur event and only do the event if the enter key is pressed

    json

    - takes a JsExp which describes how to recover the value of the text field and returns a JsExp containing the thing to execute on blur/return

    returns

    a text field

    definition classes: SHtml
  87. def jsonTextarea (value: String, cmd: String, json: JsonCall, attrs: ElemAttr*) : Elem

    Create a JSON text area widget that makes a JSON call on blur

    Create a JSON text area widget that makes a JSON call on blur

    value

    - the initial value of the text field

    cmd

    - the json command name

    json

    - the JsonCall returned from S.buildJsonFunc

    returns

    a text field

    definition classes: SHtml
  88. def jsonTextarea (value: String, json: (JsExp) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    This function does not really submit a JSON request to server instead json is a function that allows you to build a more complex JsCmd based on the JsExp JE.

    This function does not really submit a JSON request to server instead json is a function that allows you to build a more complex JsCmd based on the JsExp JE.JsRaw("this.value"). This function is called by the overloaded version of jsonTextarea.

    value

    - the initial value of the text area field

    json

    - takes a JsExp which describes how to recover the value of the text area field and returns a JsExp containing the thing to execute on blur

    returns

    a text area field

    definition classes: SHtml
  89. def link (to: String, func: () ⇒ Any, body: NodeSeq, attrs: ElemAttr*) : Elem

    create an anchor tag around a body

    create an anchor tag around a body

    func

    - the function to invoke when the link is clicked

    body

    - the NodeSeq to wrap in the anchor tag

    definition classes: SHtml
  90. def makeAjaxCall (in: JsExp, context: AjaxContext) : JsExp

    Invokes the Ajax request

    Invokes the Ajax request

    in

    the JsExp that returns the request data

    context

    defines the response callback functions and the response type (JavaScript or JSON)

    definition classes: SHtml
  91. def makeAjaxCall (in: JsExp) : JsExp

    Invokes the Ajax request

    Invokes the Ajax request

    in

    the JsExp that returns the request data

    definition classes: SHtml
  92. def makeFormsAjax : (NodeSeq) ⇒ NodeSeq

    Vend a function that will take all of the form elements and turns them into Ajax forms

    Vend a function that will take all of the form elements and turns them into Ajax forms

    definition classes: SHtml
  93. def memoize (f: ⇒ (NodeSeq) ⇒ NodeSeq) : MemoizeTransform

    Memoize the NodeSeq used in apply() and then call applyAgain() in an Ajax call and you don't have to explicitly capture the template

    Memoize the NodeSeq used in apply() and then call applyAgain() in an Ajax call and you don't have to explicitly capture the template

    definition classes: SHtml
  94. def multiSelect (opts: Seq[(String, String)], deflt: Seq[String], func: (List[String]) ⇒ Any, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  95. def multiSelectElem [T] (options: Seq[T], default: Seq[T], attrs: ElemAttr*)(onSubmit: (List[T]) ⇒ Any)(implicit f: PairStringPromoter[T]) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    options

    -- a list of value and text pairs (value, text to display)

    default

    -- the default value (or Empty if no default value)

    onSubmit

    -- the function to execute on form submission

    definition classes: SHtml
  96. def multiSelectObj [T] (options: Seq[(T, String)], default: Seq[T], onSubmit: (List[T]) ⇒ Any, attrs: ElemAttr*) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    options

    -- a list of value and text pairs (value, text to display)

    default

    -- the default value (or Empty if no default value)

    onSubmit

    -- the function to execute on form submission

    definition classes: SHtml
  97. def multiSelect_* (opts: Seq[(String, String)], deflt: Seq[String], func: AFuncHolder, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  98. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  99. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  100. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  101. def number (settable: Settable {...}, min: Int, max: Int, attrs: ElemAttr*) : Elem

    Generate a number input element for the Settable.

    Generate a number input element for the Settable. At some point there will be graceful fallback for non-HTML5 browsers. FIXME

    definition classes: SHtml
  102. def number (value: Int, func: (Int) ⇒ Any, min: Int, max: Int, attrs: ElemAttr*) : Elem

    Generate an input field with type number.

    Generate an input field with type number. At some point, there will be graceful fallback for non-HTML5 browsers. FIXME

    definition classes: SHtml
  103. def onEvent (func: (String) ⇒ JsCmd) : (String, JsExp)

    Create something that's bindable to an event attribute and when the event happens, the command will fire: <code> "input [onblur]" #> SHtml.

    Create something that's bindable to an event attribute and when the event happens, the command will fire: <code> "input [onblur]" #> SHtml.onEvent(s => Alert("Thanks: "+s)) </code>

    definition classes: SHtml
  104. def onEvents (event: String, events: String*)(func: (String) ⇒ JsCmd) : (NodeSeq) ⇒ NodeSeq

    Specify the events (e.

    Specify the events (e.g., onblur, onchange, etc.) and the function to execute on those events. Returns a NodeSeq => NodeSeq that will add the events to all the Elements <code> ":text" #> SHtml.onEvents("onchange", "onblur")(s => Alert("yikes "+s)) </code>

    definition classes: SHtml
  105. def onSubmit (func: (String) ⇒ Any) : (NodeSeq) ⇒ NodeSeq

    execute the String function when the form is submitted.

    execute the String function when the form is submitted. This method returns a function that can be applied to form fields (input, button, textarea, select) and the function is executed when the form containing the field is submitted.

    definition classes: SHtml
  106. def onSubmitBoolean (func: (Boolean) ⇒ Any) : (NodeSeq) ⇒ NodeSeq

    Execute the Boolean function when the form is submitted.

    Execute the Boolean function when the form is submitted. This method returns a function that can be applied to form fields (input, button, textarea, select) and the function is executed when the form containing the field is submitted.

    definition classes: SHtml
  107. def onSubmitImpl (func: AFuncHolder) : (NodeSeq) ⇒ NodeSeq

    Execute the function when the form is submitted.

    Execute the function when the form is submitted. This method returns a function that can be applied to form fields (input, button, textarea, select) and the function is executed when the form containing the field is submitted.

    definition classes: SHtml
  108. def onSubmitList (func: (List[String]) ⇒ Any) : (NodeSeq) ⇒ NodeSeq

    execute the List[String] function when the form is submitted.

    execute the List[String] function when the form is submitted. This method returns a function that can be applied to form fields (input, button, textarea, select) and the function is executed when the form containing the field is submitted.

    definition classes: SHtml
  109. def onSubmitUnit (func: () ⇒ Any) : (NodeSeq) ⇒ NodeSeq

    execute the function when the form is submitted.

    execute the function when the form is submitted. This method returns a function that can be applied to form fields (input, button, textarea, select) and the function is executed when the form containing the field is submitted.

    definition classes: SHtml
  110. def password (value: String, func: (String) ⇒ Any, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  111. def passwordElem (settable: Settable {...}, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  112. def password_* (value: String, func: AFuncHolder, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  113. def radio (opts: Seq[String], deflt: Box[String], func: (String) ⇒ Any, attrs: ElemAttr*) : ChoiceHolder[String]

    definition classes: SHtml
  114. def radioElem [T] (opts: Seq[T], deflt: Box[T], attrs: ElemAttr*)(onSubmit: (Box[T]) ⇒ Any) : ChoiceHolder[T]

    Generate a collection or radio box items from a sequence of things

    Generate a collection or radio box items from a sequence of things

    definition classes: SHtml
  115. def radio_* (opts: Seq[String], deflt: Box[String], func: AFuncHolder, attrs: ElemAttr*) : ChoiceHolder[String]

    definition classes: SHtml
  116. def range (settable: Settable {...}, min: Int, max: Int, attrs: ElemAttr*) : Elem

    Generate a range input element for the Settable.

    Generate a range input element for the Settable. At some point there will be graceful fallback for non-HTML5 browsers. FIXME

    definition classes: SHtml
  117. def range (value: Int, func: (Int) ⇒ Any, min: Int, max: Int, attrs: ElemAttr*) : Elem

    Generate an input field with type range.

    Generate an input field with type range. At some point, there will be graceful fallback for non-HTML5 browsers. FIXME

    definition classes: SHtml
  118. def select (opts: Seq[(String, String)], deflt: Box[String], func: (String) ⇒ Any, attrs: ElemAttr*) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    opts

    -- the options. A list of value and text pairs (value, text to display)

    deflt

    -- the default value (or Empty if no default value)

    func

    -- the function to execute on form submission

    definition classes: SHtml
  119. def selectElem [T] (options: Seq[T], settable: LiftValue[T], attrs: ElemAttr*)(implicit f: PairStringPromoter[T]) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    options

    -- a list of values

    attrs

    -- the attributes to append to the resulting Elem, these may be name-value pairs (static attributes) or special HTML5 ElemAtts

    f

    -- the function that converts a T to a Display String.

    definition classes: SHtml
  120. def selectElem [T] (options: Seq[T], default: Box[T], attrs: ElemAttr*)(onSubmit: (T) ⇒ Any)(implicit f: PairStringPromoter[T]) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    options

    -- a list of values

    default

    -- the default value (or Empty if no default value)

    attrs

    -- the attributes to append to the resulting Elem, these may be name-value pairs (static attributes) or special HTML5 ElemAtts

    onSubmit

    -- the function to execute on form submission

    f

    -- the function that converts a T to a Display String.

    definition classes: SHtml
  121. def selectObj [T] (options: Seq[(T, String)], default: Box[T], onSubmit: (T) ⇒ Any, attrs: ElemAttr*) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    options

    -- a list of value and text pairs (value, text to display)

    default

    -- the default value (or Empty if no default value)

    onSubmit

    -- the function to execute on form submission

    definition classes: SHtml
  122. def select_* (opts: Seq[(String, String)], deflt: Box[String], func: AFuncHolder, attrs: ElemAttr*) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission

    Create a select box based on the list with a default value and the function to be executed on form submission

    opts

    -- the options. A list of value and text pairs

    deflt

    -- the default value (or Empty if no default value)

    func

    -- the function to execute on form submission

    definition classes: SHtml
  123. def span (body: NodeSeq, cmd: JsCmd, attrs: ElemAttr*) : Elem

    Create a span that will run a JavaScript command when clicked

    Create a span that will run a JavaScript command when clicked

    definition classes: SHtml
  124. def submit (value: String, func: () ⇒ Any, attrs: ElemAttr*) : Elem

    Generates a form submission button.

    Generates a form submission button.

    value

    The label for the button

    func

    The function that will be executed on form submission

    attrs

    Optional XHTML element attributes that will be applied to the button

    definition classes: SHtml
  125. def submitAjaxForm (formId: String, postSubmit: Call) : JsCmd

    Having a regular form, this method can be used to send the serialized content of the form.

    Having a regular form, this method can be used to send the serialized content of the form.

    postSubmit

    - the function that needs to be called after a successfull request

    definition classes: SHtml
  126. def submitAjaxForm (formId: String, func: () ⇒ JsCmd) : JsCmd

    Submits a form denominated by a formId and execute the func function after form fields functions are executed.

    Submits a form denominated by a formId and execute the func function after form fields functions are executed.

    definition classes: SHtml
  127. def submitAjaxForm (formId: String) : JsCmd

    Having a regular form, this method can be used to send the serialized content of the form.

    Having a regular form, this method can be used to send the serialized content of the form.

    definition classes: SHtml
  128. def submitButton (func: () ⇒ Any, attrs: ElemAttr*) : Elem

    Generates a form submission button with a default label.

    Generates a form submission button with a default label.

    func

    The function that will be executed on form submission

    attrs

    Optional XHTML element attributes that will be applied to the button

    definition classes: SHtml
  129. def submitJsonForm (jsonHandler: JsonHandler, formId: String) : JsCmd

    Having a regular form, this method can be used to send the content of the form as JSON.

    Having a regular form, this method can be used to send the content of the form as JSON. the request will be processed by the jsonHandler

    jsonHandler

    - the handler that process this request

    definition classes: SHtml
  130. def submit_* (value: String, func: AFuncHolder, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  131. def swappable (shown: Elem, hidden: (String) ⇒ Elem) : Elem

    definition classes: SHtml
  132. def swappable (shown: Elem, hidden: Elem) : Elem

    Build a swappable visual element.

    Build a swappable visual element. If the shown element is clicked on, it turns into the hidden element and when the hidden element blurs, it swaps into the shown element.

    definition classes: SHtml
  133. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  134. def text (value: String, func: (String) ⇒ Any, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  135. def textAjaxTest (value: String, func: (String) ⇒ Any, ajaxTest: Box[(String) ⇒ JsCmd], attrs: ElemAttr*) : Elem

    definition classes: SHtml
  136. def textAjaxTest (value: String, func: (String) ⇒ Any, ajaxTest: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  137. def textElem (settable: Settable {...}, attrs: ElemAttr*) : Elem

    Generate an input element for the Settable

    Generate an input element for the Settable

    definition classes: SHtml
  138. def text_* (value: String, func: AFuncHolder, ajaxTest: Box[(String) ⇒ JsCmd], attrs: ElemAttr*) : Elem

    definition classes: SHtml
  139. def text_* (value: String, ignoreBlur: Boolean, func: AFuncHolder, ajaxTest: Box[(String) ⇒ JsCmd], attrs: ElemAttr*) : Elem

    definition classes: SHtml
  140. def text_* (value: String, func: AFuncHolder, ajaxTest: (String) ⇒ JsCmd, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  141. def text_* (value: String, func: AFuncHolder, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  142. def textarea (value: String, func: (String) ⇒ Any, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  143. def textareaElem (settable: Settable {...}, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  144. def textarea_* (value: String, func: AFuncHolder, attrs: ElemAttr*) : Elem

    definition classes: SHtml
  145. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  146. def toggleKids (head: Elem, visible: Boolean, func: () ⇒ JsCmd, kids: Elem) : NodeSeq

    definition classes: SHtml
  147. def untrustedMultiSelect (opts: Seq[(String, String)], deflt: Seq[String], func: (List[String]) ⇒ Any, attrs: ElemAttr*) : NodeSeq

    Create a multiple select box based on the list with a default value and the function to be executed on form submission.

    Create a multiple select box based on the list with a default value and the function to be executed on form submission. No check is made to see if the resulting value was in the original list. For use with DHTML form updating.

    opts

    -- the options. A list of value and text pairs

    deflt

    -- the default value (or Empty if no default value)

    func

    -- the function to execute on form submission

    definition classes: SHtml
  148. def untrustedMultiSelect_* (opts: Seq[(String, String)], deflt: Seq[String], lf: AFuncHolder, attrs: ElemAttr*) : NodeSeq

    Create a multiple select box based on the list with a default value and the function to be executed on form submission.

    Create a multiple select box based on the list with a default value and the function to be executed on form submission. No check is made to see if the resulting value was in the original list. For use with DHTML form updating.

    opts

    -- the options. A list of value and text pairs

    deflt

    -- the default value (or Empty if no default value)

    definition classes: SHtml
  149. def untrustedSelect (opts: Seq[(String, String)], deflt: Box[String], func: (String) ⇒ Any, attrs: ElemAttr*) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission.

    Create a select box based on the list with a default value and the function to be executed on form submission. No check is made to see if the resulting value was in the original list. For use with DHTML form updating.

    opts

    -- the options. A list of value and text pairs

    deflt

    -- the default value (or Empty if no default value)

    func

    -- the function to execute on form submission

    definition classes: SHtml
  150. def untrustedSelect_* (opts: Seq[(String, String)], deflt: Box[String], func: AFuncHolder, attrs: ElemAttr*) : Elem

    Create a select box based on the list with a default value and the function to be executed on form submission.

    Create a select box based on the list with a default value and the function to be executed on form submission. No check is made to see if the resulting value was in the original list. For use with DHTML form updating.

    opts

    -- the options. A list of value and text pairs

    deflt

    -- the default value (or Empty if no default value)

    func

    -- the function to execute on form submission

    definition classes: SHtml
  151. def url (settable: Settable {...}, attrs: ElemAttr*) : Elem

    Generate a url input element for the Settable.

    Generate a url input element for the Settable. At some point there will be graceful fallback for non-HTML5 browsers. FIXME

    definition classes: SHtml
  152. def url (value: String, func: (String) ⇒ Any, attrs: ElemAttr*) : Elem

    Generate an input field with type url.

    Generate an input field with type url. At some point, there will be graceful fallback for non-HTML5 browsers. FIXME

    definition classes: SHtml
  153. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  154. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  155. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef

Inherited from SHtml

Inherited from AnyRef

Inherited from Any