trait RenderableNode[-Component] extends AnyRef
RenderableNode[Component]
is evidence that you can convert a Component to
a Laminar ChildNode.
If you have an implicit val of RenderableNode[Component], Laminar can
render your Component-s by converting them to ChildNode-s, and will accept
your Component-s in child <--
, children <--
, etc.
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
.
See also – RenderableText
- Annotations
- @implicitNotFound()
- Alphabetic
- By Inheritance
- RenderableNode
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def asNode(value: Component): Child
For every component, this MUST ALWAYS return the exact same node reference.
- abstract def asNodeIterable(values: Iterable[Component]): Iterable[Child]
For every component in the sequence, this MUST ALWAYS return the exact same node reference.
- abstract def asNodeOption(value: Option[Component]): Option[Child]
For every component, this MUST ALWAYS return the exact same node reference.
- abstract def asNodeSeq(values: Seq[Component]): Children
For every component in the sequence, this MUST ALWAYS return the exact same node reference.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated