Text

org.terminal21.client.components.chakra.Text
case class Text(key: String, text: String, fontSize: Option[String], noOfLines: Option[Int], color: Option[String], as: Option[String], align: Option[String], casing: Option[String], decoration: Option[String], style: Map[String, Any]) extends ChakraElement[Text]

Attributes

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

Members list

Value members

Concrete methods

def withAlign(v: Option[String]): Text
def withAs(v: Option[String]): Text
def withCasing(v: Option[String]): Text
def withColor(v: Option[String]): Text
def withDecoration(v: Option[String]): Text
def withFontSize(v: Option[String]): Text
def withKey(v: String): Text
def withNoOfLines(v: Option[Int]): Text
override def withStyle(v: Map[String, Any]): Text

Attributes

Definition Classes
def withText(v: String): Text

Inherited methods

def current(using session: ConnectedSession): A

Attributes

Inherited from:
Current
def flat: Seq[UiElement]

Attributes

Inherited from:
UiElement
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