Button

org.terminal21.client.components.chakra.Button
case class Button(key: String, text: String, size: Option[String], variant: Option[String], colorScheme: Option[String], style: Map[String, Any], leftIcon: Option[UiElement], rightIcon: Option[UiElement], isActive: Option[Boolean], isDisabled: Option[Boolean], isLoading: Option[Boolean], isAttached: Option[Boolean], spacing: Option[String]) extends ChakraElement[Button], CanHandleOnClickEvent[Button]

Attributes

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

Members list

Value members

Concrete methods

def withColorScheme(v: Option[String]): Button
def withIsActive(v: Option[Boolean]): Button
def withIsAttached(v: Option[Boolean]): Button
def withIsDisabled(v: Option[Boolean]): Button
def withIsLoading(v: Option[Boolean]): Button
def withKey(v: String): Button
def withLeftIcon(v: Option[UiElement]): Button
def withRightIcon(v: Option[UiElement]): Button
def withSize(v: Option[String]): Button
def withSpacing(v: Option[String]): Button
override def withStyle(v: Map[String, Any]): Button

Attributes

Definition Classes
def withText(v: String): Button
def withVariant(v: Option[String]): Button

Inherited methods

def current(using session: ConnectedSession): A

Attributes

Inherited from:
Current
def flat: Seq[UiElement]

Attributes

Inherited from:
UiElement
def onClick(h: OnClickEventHandler)(using session: ConnectedSession): A

Attributes

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