com.raquo.laminar.tags

Members list

Type members

Classlikes

class CustomHtmlTag[Ref <: Element](val name: String, val allowedInputControllerConfigIndices: Ref => UndefOr[JsArray[Int]], val allowableInputControllerConfigs: UndefOr[JsArray[InputControllerConfig[Ref, _]]]) extends HtmlTag[Ref]

If you are creating custallowedInputControllerConfigIndiceshis class instead of HtmlTag.

If you are creating custallowedInputControllerConfigIndiceshis class instead of HtmlTag.

Currently this class is only used to support controlled blocks in Web Components, but it may get more features in the future.

Note: We allow multiple input controller configs per custom element type in case there are weird cases like:

  • A web component with two HtmlProp-s defined for the same underlying prop, with different codecs
    • e.g. valueString vs valueNumber vs valueList
  • A web component with two input fields that can both be controlled independently.

Value parameters

allowableInputControllerConfigs

Returns an array of input controller configs that can in principle be used on this element type. This is needed to warn users about conflicts with non-controlled binders for these properties. (i.e prevent situations where you have value <-- ... both controlled and uncontrolled on the same element)

allowedInputControllerConfigIndices

Specifies which of the configs defined in allowableInputControllerConfigs are actually allowed to be used in a controlled on a given element. This takes into account the element's details such as whether it's a checkbox or a text input, if that is not already apparent from the tag name. This returns a list of 0-based indices of the allowed config from allowableInputControllerConfigs.

Attributes

Companion
object
Supertypes
class HtmlTag[Ref]
trait Tag[ReactiveHtmlElement[Ref]]
class Object
trait Matchable
class Any
object CustomHtmlTag

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class HtmlTag[+Ref <: Element](val name: String, val void: Boolean) extends Tag[ReactiveHtmlElement[Ref]]

Attributes

Supertypes
trait Tag[ReactiveHtmlElement[Ref]]
class Object
trait Matchable
class Any
Known subtypes
class CustomHtmlTag[Ref]
class SvgTag[+Ref <: Element](val name: String, val void: Boolean) extends Tag[ReactiveSvgElement[Ref]]

Attributes

Supertypes
trait Tag[ReactiveSvgElement[Ref]]
class Object
trait Matchable
class Any
trait Tag[+El <: Base]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class HtmlTag[Ref]
class CustomHtmlTag[Ref]
class SvgTag[Ref]
object Tag

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Tag.type