RawTag

tyrian.RawTag
See theRawTag companion object
final case class RawTag[+M](name: String, attributes: List[Attr[M]], innerHTML: String, key: Option[String]) extends Html[M]

An HTML tag with raw HTML rendered inside. Beware that the inner HTML is not validated to be correct, nor does it get modified as a response to messages in any way.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Html[M]
trait Elem[M]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def clearKey: RawTag[M]

Clear a key value that was being used to help the virtual-dom understand what has changed.

Clear a key value that was being used to help the virtual-dom understand what has changed.

Attributes

def innerHtml(html: String): RawTag[M]

Set this node's innerHtml with stringified HTML.

Set this node's innerHtml with stringified HTML.

Attributes

def map[N](f: M => N): RawTag[N]

Map over the node in order to modify the Msg type

Map over the node in order to modify the Msg type

Attributes

def setKey(value: String): RawTag[M]

Set a key value to help the virtual-dom understand what has changed.

Set a key value to help the virtual-dom understand what has changed.

Attributes

def withKey(value: Option[String]): RawTag[M]

Optionally set a key value to help the virtual-dom understand what has changed.

Optionally set a key value to help the virtual-dom understand what has changed.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Html -> Elem -> Any
Inherited from:
Html