RenderableNode

com.raquo.laminar.modifiers.RenderableNode
See theRenderableNode companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[Component](renderNode: Component => Base): RenderableNode[Component]

A Component must have a 1-to-1 relationship to a Laminar ChildNode. Your Component class/trait should have something like val node: ChildNode.Base or lazy val node: ChildNode.Base in it, it must not be a var or a def.

A Component must have a 1-to-1 relationship to a Laminar ChildNode. Your Component class/trait should have something like val node: ChildNode.Base or lazy val node: ChildNode.Base in it, it must not be a var or a def.

Note: This implementation works for essentially all use cases, and while it is USUALLY the most efficient, that is not always the case. For example, nodeRenderable below is a special implementation that avoids mapping over the input collections because that is not needed.

Attributes

Implicits

Implicits

This low level implementation avoids mapping over collections for maximum efficiency.

This low level implementation avoids mapping over collections for maximum efficiency.

Attributes