RxElement

wvlet.airframe.rx.html.RxElement
See theRxElement companion object
abstract class RxElement(val modifiers: List[Seq[HtmlNode]]) extends HtmlNode, LogSupport

Attributes

Companion
object
Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait HtmlNode
trait HtmlNodeBase
class Object
trait Matchable
class Any
Show all
Known subtypes
class HtmlElement
class LazyRxElement[A]
Self type

Members list

Value members

Abstract methods

Render this element

Render this element

Attributes

Concrete methods

def add(xs: HtmlNode*): RxElement

Add child nodes (elements or attributes) to this element

Add child nodes (elements or attributes) to this element

Attributes

def apply(xs: HtmlNode*): RxElement

Add child elements or attributes to this element and return this element

Add child elements or attributes to this element and return this element

Attributes

def beforeRender: Unit

Called right before rendering this RxElement begins.

Called right before rendering this RxElement begins.

Override this method to define a custom event hook before rendering.

Attributes

def beforeUnmount: Unit

Called right before unmounting (deleting) this RxElement from DOM.

Called right before unmounting (deleting) this RxElement from DOM.

This is a good place to remove any background process or manually added event listeners.

Attributes

def onMount: Unit

Called right after mounting this RxElement to the document. Override this method to define a custom event hook after rendering.

Called right after mounting this RxElement to the document. Override this method to define a custom event hook after rendering.

Attributes

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
def renderTo(nodeId: String): Unit

(Scala.js only) Render this element to the DOM node of the given ID. If the corresponding DOM node is not found, this method will create a new DOM node.

(Scala.js only) Render this element to the DOM node of the given ID. If the corresponding DOM node is not found, this method will create a new DOM node.

Attributes

Returns

A cancelable RxDOMNode

Inherited from:
HtmlNodeBase
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

Deprecated and Inherited methods

def unless(cond: => Boolean): HtmlNode

Attributes

Deprecated
[Since version 23.7.0]
Inherited from:
HtmlNode
def when(cond: => Boolean): HtmlNode

Attributes

Deprecated
[Since version 23.7.0]
Inherited from:
HtmlNode

Concrete fields

val modifiers: List[Seq[HtmlNode]]