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], dataStore: TypedMap) extends ChakraElement, CanHandleOnClickEvent

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait HasStyle
trait CEJson
class UiElement
trait AnyElement
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

type This = Button

Value members

Concrete methods

def withColorScheme(v: Option[String]): Button
override def withDataStore(ds: TypedMap): Button

Attributes

Definition Classes
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): This
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
HasStyle
def withText(v: String): Button
def withVariant(v: Option[String]): Button

Inherited methods

def findKey(key: String): UiElement

Attributes

Inherited from:
UiElement
def flat: Seq[UiElement]

Attributes

Returns

this element along all it's children flattened

Inherited from:
UiElement
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def store[V](key: TypedMapKey[V], value: V): This

Attributes

Inherited from:
UiElement
def storedValue[V](key: TypedMapKey[V]): V

Attributes

Inherited from:
UiElement

Attributes

Inherited from:
UiElement
def toSimpleString: String

Attributes

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

Attributes

Inherited from:
HasStyle