DOMRenderer

wvlet.airframe.rx.html.DOMRenderer$
object DOMRenderer extends LogSupport

Convert HtmlNodes into DOM elements for Scala.js.

An important functionality of this renderer is composing Cancelable objects so that resources allocated along with the rendered DOM objects will be properly discarded.

Resources include event listeners, Rx subscribers, etc.

Attributes

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def createNode(e: RxElement): (Node, Cancelable)

Create a new DOM node from the given RxElement

Create a new DOM node from the given RxElement

Attributes

Returns

A pair of the rendered DOM node and a Cancelable object to clean up the rendered elements

def renderTo(node: Node, htmlNode: HtmlNode, modifier: Node => Node): Cancelable
def renderToHtml(node: Node): String
def renderToNode(nodeId: String, htmlNode: HtmlNode): (Node, Cancelable)

Render HtmlNode to a div element with the given id in the document. If the node doesn't exist, this method will create a new div element with the nodeId.

Render HtmlNode to a div element with the given id in the document. If the node doesn't exist, this method will create a new div element with the nodeId.

Attributes

Returns

A pair of the rendered DOM node and a Cancelable object to clean up the rendered elements

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods