object attrlist extends AttributeListSyntax
Import this to use the list-style attribute syntax. Create an attribtute
list using Attrs
or after importing the contents of this object, if they
are styles, Style(<attribute list>)
and convert it to a js.Object
using
.toJs()
. You can then use the js.Object when creating elements by merging
that value into trait structures that represent only allowed attributes for a
specific tag.
- Alphabetic
- By Inheritance
- attrlist
- AttributeListSyntax
- AttributeListLowerOrderPriorityImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit final class optionalMarkupOps extends AnyRef
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
Value Members
- lazy val Attributes: Attrs.type
Create a list of attribtes.
- lazy val Style: Attrs.type
For now, style attributes are just attributes so fake it out.
- def attr(name: String): AttrName
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtAttrsToAttrValue(attrs: Attrs): AttrValue
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtBoolToAttrValue(v: Boolean): AttrValue
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtDoubleToAttrValue(v: Double): AttrValue
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtDynamicToAttrValue(attrs: Dynamic): AttrValue
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtFunctionToAttrValue(v: Function): AttrValue
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtIntToAttrValue(v: Int): AttrValue
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtJsAnyToAttrValue(v: Any): AttrValue
Convert an js value to a AttrValue.
Convert an js value to a AttrValue.
- Definition Classes
- AttributeListLowerOrderPriorityImplicits
- Annotations
- @inline()
- implicit def cvtStringToAttrName(s: String): AttrName
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtStringToAttrValue(s: String): AttrValue
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtStringsPairToAttr(p: (String, String)): Attr
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtStringsPairToAttrs(p: (String, String)): Attrs
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- implicit def cvtStyleAttroAttrValue(s: StyleAttr): AttrValue
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- lazy val noAttributes: Attrs
- object prefix_<^
Default tags and attributes you can use.
Default tags and attributes you can use. You can import all of the actual values using
import ^._, <._
. This style is popular with other scalajs react facades but should really not be used in this library vs the more (but not perfectly) strongly typed versions in
vdom.tags.