Implicits

com.raquo.laminar.api.Implicits
See theImplicits companion object

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Laminar

Members list

Type members

Inherited classlikes

object JsDictionaryValueMapper extends CompositeValueMapper[Dictionary[Boolean]]

Attributes

Inherited from:
CompositeValueMappers
Supertypes
trait CompositeValueMapper[Dictionary[Boolean]]
class Object
trait Matchable
class Any
object MapValueMapper extends CompositeValueMapper[Map[String, Boolean]]

Attributes

Inherited from:
CompositeValueMappers
Supertypes
trait CompositeValueMapper[Map[String, Boolean]]
class Object
trait Matchable
class Any
object StringBooleanSeqSeqValueMapper extends CompositeValueMapper[Seq[Seq[(String, Boolean)]]]

Attributes

Inherited from:
CompositeValueMappers
Supertypes
trait CompositeValueMapper[Seq[Seq[(String, Boolean)]]]
class Object
trait Matchable
class Any
object StringBooleanSeqValueMapper extends CompositeValueMapper[Seq[(String, Boolean)]]

Attributes

Inherited from:
CompositeValueMappers
Supertypes
trait CompositeValueMapper[Seq[(String, Boolean)]]
class Object
trait Matchable
class Any
object StringSeqSeqValueMapper extends CompositeValueMapper[Seq[Seq[String]]]

Attributes

Inherited from:
CompositeValueMappers
Supertypes
trait CompositeValueMapper[Seq[Seq[String]]]
class Object
trait Matchable
class Any
object StringSeqValueMapper extends CompositeValueMapper[Seq[String]]

Attributes

Inherited from:
CompositeValueMappers
Supertypes
trait CompositeValueMapper[Seq[String]]
class Object
trait Matchable
class Any
object StringValueMapper extends CompositeValueMapper[String]

Attributes

Inherited from:
CompositeValueMappers
Supertypes
trait CompositeValueMapper[String]
class Object
trait Matchable
class Any

Implicits

Implicits

implicit def componentToNode[A](component: A)(implicit r: RenderableNode[A]): Base

Convert a custom component to Laminar DOM node

Convert a custom component to Laminar DOM node

Attributes

implicit def derivedStyleIntToDouble(style: DerivedStyleProp[Int]): DerivedStyleProp[Double]

Allow both Int-s and Double-s in numeric style props

Allow both Int-s and Double-s in numeric style props

Attributes

implicit def enrichSource[A](source: Source[A]): RichSource[A]

Add --> methods to Observables

Add --> methods to Observables

Attributes

implicit def eventPropToProcessor[Ev <: Event](eventProp: EventProp[Ev]): EventProcessor[Ev, Ev]

Add EventProcessor methods (mapToValue / filter / preventDefault / etc.) to event props (e.g. onClick)

Add EventProcessor methods (mapToValue / filter / preventDefault / etc.) to event props (e.g. onClick)

Attributes

implicit def nodeOptionToModifier(nodes: Option[Base]): Base
implicit def nodeSeqToModifier[Collection[_]](nodes: Collection[Base])(implicit renderableSeq: RenderableSeq[Collection]): Base
implicit def optionToModifier[A, El <: Base](maybeModifier: Option[A])(implicit asModifier: A => Modifier[El]): Modifier[El]

Create a modifier that applies an optional modifier, or does nothing if option is empty

Create a modifier that applies an optional modifier, or does nothing if option is empty

Attributes

implicit def optionToSetter[El <: Base](maybeSetter: Option[Setter[El]]): Setter[El]

Create a Setter that applies the optionally provided Setter, or else does nothing.

Create a Setter that applies the optionally provided Setter, or else does nothing.

Attributes

implicit def seqToModifier[A, Collection[_], El <: Base](modifiers: Collection[A])(implicit asModifier: A => Modifier[El], renderableSeq: RenderableSeq[Collection]): Modifier[El]

Create a modifier that applies each of the modifiers in a seq

Create a modifier that applies each of the modifiers in a seq

Attributes

implicit def seqToSetter[Collection[_], El <: Base](setters: Collection[Setter[El]])(implicit renderableSeq: RenderableSeq[Collection]): Setter[El]

Combine a js.Array of Setter-s into a single Setter that applies them all.

Combine a js.Array of Setter-s into a single Setter that applies them all.

Attributes

implicit def styleEncoderIntToDouble(encoder: StyleEncoder[Int]): StyleEncoder[Double]

Allow both Int-s and Double-s in numeric style props

Allow both Int-s and Double-s in numeric style props

Attributes

implicit def textToTextNode[A](value: A)(implicit r: RenderableText[A]): TextNode

Convert primitive renderable values (strings, numbers, booleans, etc.) to text nodes

Convert primitive renderable values (strings, numbers, booleans, etc.) to text nodes

Attributes

Inherited implicits

implicit def componentOptionToInserter[Component](maybeComponent: Option[Component])(implicit renderableNode: RenderableNode[Component]): StaticChildrenInserter

Attributes

Inherited from:
LowPriorityImplicits
implicit def componentSeqToInserter[Collection[_], Component](components: Collection[Component])(implicit renderableSeq: RenderableSeq[Collection], renderableNode: RenderableNode[Component]): StaticChildrenInserter

Attributes

Inherited from:
LowPriorityImplicits
implicit def componentToInserter[Component : RenderableNode](component: Component): StaticChildInserter

Attributes

Inherited from:
LowPriorityImplicits
implicit def textToInserter[TextLike](value: TextLike)(implicit r: RenderableText[TextLike]): StaticInserter

Attributes

Inherited from:
LowPriorityImplicits