com.raquo.laminar.modifiers.Modifier
See theModifier companion object
This type represents an operation that has a side effect on a node of type El.
For example: href := "http://example.com"
is a Modifier that sets the href attribute to an example URL when invoked on an element (typically when the element is created, or if the modifier is added after the fact using the amend
method, or by manually calling its apply
method).
If you choose to extend this trait, make sure to understand how to use Transaction.onStart.shared. In simple cases, wrapping your callback in it similarly to Modifier.apply below will probably work. See https://github.com/raquo/Airstream/#restarting-streams-that-depend-on-signals--signalchanges-
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Binder[El]class Inserter[El]trait Setter[El]trait ChildNode[Ref]class CommentNodetrait ReactiveElement[Ref]class ReactiveHtmlElement[Ref]class ReactiveSvgElement[Ref]class TextNode
Members list
In this article