WiringUI

olon.http.WiringUI
object WiringUI

Surface a user interface on top of Wiring

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
WiringUI.type

Members list

Value members

Concrete methods

def addHistJsFunc[T](cell: Cell[T], f: (Box[T], T) => JsCmd): Unit

Associate a Cell and a function that converts from the cell's value to a JavaScript command to be sent to the browser as part of the page's post-processing.

Associate a Cell and a function that converts from the cell's value to a JavaScript command to be sent to the browser as part of the page's post-processing.

Value parameters

cell

the cell to associate the JavaScript to

f

the function that takes the cell's value and a flag indicating if this is the first time

Attributes

def addJsFunc[T](cell: Cell[T], f: (T, Boolean) => JsCmd): Unit

Associate a Cell and a function that converts from the cell's value to a JavaScript command to be sent to the browser as part of the page's post-processing.

Associate a Cell and a function that converts from the cell's value to a JavaScript command to be sent to the browser as part of the page's post-processing.

Value parameters

cell

the cell to associate the JavaScript to

f

the function that takes the cell's value and a flag indicating if this is the first time

Attributes

def apply[T](in: NodeSeq, cell: Cell[T])(f: T => NodeSeq => NodeSeq): NodeSeq

Given a NodeSeq, a Cell and a function that can generate a NodeSeq => NodeSeq from the cell's value, register the postPageJavaScript that will update the element with a new value.

Given a NodeSeq, a Cell and a function that can generate a NodeSeq => NodeSeq from the cell's value, register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

f

the function that performs the drawing

in

the NodeSeq that contains the view markup

Attributes

Returns

the mutated NodeSeq (an id attribute may be added if there's none already defined)

def apply[T](cell: Cell[T])(f: T => NodeSeq => NodeSeq): NodeSeq => NodeSeq

Given a Cell and a function that can generate a NodeSeq => NodeSeq from the cell's value, return a function that takes a NodeSeq and registers the postPageJavaScript that will update the element with a new value.

Given a Cell and a function that can generate a NodeSeq => NodeSeq from the cell's value, return a function that takes a NodeSeq and registers the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

f

the function that performs the drawing

Attributes

Returns

a function that mutates NodeSeq (an id attribute may be added if there's none already defined)

def apply[T](in: NodeSeq, cell: Cell[T], jsEffect: (String, Boolean, JsCmd) => JsCmd)(f: T => NodeSeq => NodeSeq): NodeSeq

Given a NodeSeq, a Cell and a function that can generate a NodeSeq => NodeSeq from the cell's value, register the postPageJavaScript that will update the element with a new value.

Given a NodeSeq, a Cell and a function that can generate a NodeSeq => NodeSeq from the cell's value, register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

f

the function that performs the drawing

in

the NodeSeq that contains the view markup

jsEffect

a function that wraps the SetHtml JsCmd so you can, for example, fade out the old value, set the new value and fade it in. The first parameter is the id of the element, the second is a flag that's true if this is the first time the element is being rendered (you might want to skip effects for the inital page load), and the third parameter is the SetHtml JavaScript code.

Attributes

Returns

the mutated NodeSeq (an id attribute may be added if there's none already defined)

def apply[T](cell: Cell[T], jsEffect: (String, Boolean, JsCmd) => JsCmd)(f: T => NodeSeq => NodeSeq): NodeSeq => NodeSeq

Given a Cell and a function that can generate a NodeSeq => NodeSeq from the cell's value, return a function that with a NodeSeq will register the postPageJavaScript that will update the element with a new value.

Given a Cell and a function that can generate a NodeSeq => NodeSeq from the cell's value, return a function that with a NodeSeq will register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

f

the function that performs the drawing

jsEffect

a function that wraps the SetHtml JsCmd so you can, for example, fade out the old value, set the new value and fade it in. The first parameter is the id of the element, the second is a flag that's true if this is the first time the element is being rendered (you might want to skip effects for the inital page load), and the third parameter is the SetHtml JavaScript code.

Attributes

Returns

the mutated NodeSeq (an id attribute may be added if there's none already defined)

def asText[T](in: NodeSeq, cell: Cell[T]): NodeSeq

Given a NodeSeq, a Cell register the postPageJavaScript that will update the element with a new value.

Given a NodeSeq, a Cell register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

in

the NodeSeq that contains the view markup

Attributes

Returns

the mutated NodeSeq (an id attribute may be added if there's none already defined)

def asText[T](cell: Cell[T]): NodeSeq => NodeSeq

Given a Cell register the postPageJavaScript that will update the element with a new value.

Given a Cell register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

Attributes

Returns

a function that will mutate the NodeSeq (an id attribute may be added if there's none already defined)

def asText[T](in: NodeSeq, cell: Cell[T], jsEffect: (String, Boolean, JsCmd) => JsCmd): NodeSeq

Given a NodeSeq, a Cell register the postPageJavaScript that will update the element with a new value.

Given a NodeSeq, a Cell register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

in

the NodeSeq that contains the view markup

jsEffect

a function that wraps the SetHtml JsCmd so you can, for example, fade out the old value, set the new value and fade it in. The first parameter is the id of the element, the second is a flag that's true if this is the first time the element is being rendered (you might want to skip effects for the inital page load), and the third parameter is the SetHtml JavaScript code.

Attributes

Returns

the mutated NodeSeq (an id attribute may be added if there's none already defined)

def asText[T](cell: Cell[T], jsEffect: (String, Boolean, JsCmd) => JsCmd): NodeSeq => NodeSeq

Given a NodeSeq, a Cell register the postPageJavaScript that will update the element with a new value.

Given a NodeSeq, a Cell register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

in

the NodeSeq that contains the view markup

jsEffect

a function that wraps the SetHtml JsCmd so you can, for example, fade out the old value, set the new value and fade it in. The first parameter is the id of the element, the second is a flag that's true if this is the first time the element is being rendered (you might want to skip effects for the inital page load), and the third parameter is the SetHtml JavaScript code.

Attributes

Returns

a function that will mutate the NodeSeq (an id attribute may be added if there's none already defined)

def history[T](cell: Cell[T])(f: (Box[T], T, NodeSeq) => JsCmd): NodeSeq => NodeSeq
def toNode[T](in: NodeSeq, cell: Cell[T])(f: (T, NodeSeq) => NodeSeq): NodeSeq

Given a NodeSeq, a Cell and a function that can generate a NodeSeq from the cell's value and the template value, register the postPageJavaScript that will update the element with a new value.

Given a NodeSeq, a Cell and a function that can generate a NodeSeq from the cell's value and the template value, register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

f

the function that performs the drawing

in

the NodeSeq that contains the view markup

Attributes

Returns

the mutated NodeSeq (an id attribute may be added if there's none already defined)

def toNode[T](cell: Cell[T])(f: (T, NodeSeq) => NodeSeq): NodeSeq => NodeSeq

Given a NodeSeq, a Cell and a function that can generate a NodeSeq from the cell's value and the template value, register the postPageJavaScript that will update the element with a new value.

Given a NodeSeq, a Cell and a function that can generate a NodeSeq from the cell's value and the template value, register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

f

the function that performs the drawing

in

the NodeSeq that contains the view markup

Attributes

Returns

the mutated NodeSeq (an id attribute may be added if there's none already defined)

def toNode[T](in: NodeSeq, cell: Cell[T], jsEffect: (String, Boolean, JsCmd) => JsCmd)(f: (T, NodeSeq) => NodeSeq): NodeSeq

Given a NodeSeq, a Cell and a function that can generate a NodeSeq from the cell's value and the template value, register the postPageJavaScript that will update the element with a new value.

Given a NodeSeq, a Cell and a function that can generate a NodeSeq from the cell's value and the template value, register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

f

the function that performs the drawing

in

the NodeSeq that contains the view markup

jsEffect

a function that wraps the SetHtml JsCmd so you can, for example, fade out the old value, set the new value and fade it in. The first parameter is the id of the element, the second is a flag that's true if this is the first time the element is being rendered (you might want to skip effects for the inital page load), and the third parameter is the SetHtml JavaScript code.

Attributes

Returns

the mutated NodeSeq (an id attribute may be added if there's none already defined)

def toNode[T](cell: Cell[T], jsEffect: (String, Boolean, JsCmd) => JsCmd)(f: (T, NodeSeq) => NodeSeq): NodeSeq => NodeSeq

Given a Cell and a function that can generate a NodeSeq from the cell's value and the template value, register the postPageJavaScript that will update the element with a new value.

Given a Cell and a function that can generate a NodeSeq from the cell's value and the template value, register the postPageJavaScript that will update the element with a new value.

Value parameters

cell

the cell to associate with

f

the function that performs the drawing

jsEffect

a function that wraps the SetHtml JsCmd so you can, for example, fade out the old value, set the new value and fade it in. The first parameter is the id of the element, the second is a flag that's true if this is the first time the element is being rendered (you might want to skip effects for the inital page load), and the third parameter is the SetHtml JavaScript code.

Attributes

Returns

the mutated NodeSeq (an id attribute may be added if there's none already defined)