Box

org.terminal21.client.components.chakra.Box
case class Box(key: String, text: String, bg: String, w: String, p: Int, color: String, style: Map[String, Any], as: Option[String], children: Seq[UiElement]) extends ChakraElement[Box], HasChildren[Box]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait HasChildren[Box]
trait Current[Box]
trait HasStyle[Box]
trait CEJson
trait UiElement
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def withAs(v: Option[String]): Box
def withBg(v: String): Box
override def withChildren(cn: UiElement*): Box

Attributes

Definition Classes
def withColor(v: String): Box
def withKey(v: String): Box
def withP(v: Int): Box
override def withStyle(v: Map[String, Any]): Box

Attributes

Definition Classes
def withText(v: String): Box
def withW(v: String): Box

Inherited methods

def addChildren(cn: UiElement*): A

Attributes

Inherited from:
HasChildren
def current(using session: ConnectedSession): A

Attributes

Inherited from:
Current
override def flat: Seq[UiElement]

Attributes

Definition Classes
Inherited from:
HasChildren
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def render()(using session: ConnectedSession): Unit

Attributes

Inherited from:
UiElement
def renderChanges()(using session: ConnectedSession): Unit

Renders any changes for this element and it's children (if any). The element must previously have been added to the session.

Renders any changes for this element and it's children (if any). The element must previously have been added to the session.

Attributes

Inherited from:
UiElement
def withStyle(vs: (String, Any)*): A

Attributes

Inherited from:
HasStyle