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
- 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
- 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.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attr(name: String): AttrName
- Definition Classes
- AttributeListSyntax
- Annotations
- @inline()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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()
- 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
- lazy val noAttributes: Attrs
- 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])
- 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.