Center

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

Attributes

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

Members list

Value members

Concrete methods

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

Attributes

Definition Classes
def withColor(v: Option[String]): Center
def withH(v: Option[String]): Center
def withKey(v: String): Center
override def withStyle(v: Map[String, Any]): Center

Attributes

Definition Classes
def withText(v: String): Center
def withW(v: Option[String]): Center

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