ButtonProperties

@Serializable
data class ButtonProperties(val viewType: ViewType = ViewType.BUTTON, val weight: Float = 0.0f, val backgroundColor: String? = null, val padding: Int = 0, val borderRadius: Int = 14, val alignment: ViewAlignment = ViewAlignment.NONE, val fillMaxWidth: Boolean = true, val fillMaxHeight: Boolean = false, val clickable: String = "false", val visible: String = "true", val opacity: Float? = null, val contentColor: String? = null, val enabled: String = "true", val text: String? = null, val status: String, val fontSize: Float = 14.0f, val actions: List<ActionConfig> = emptyList(), val buttonType: ButtonType = ButtonType.MEDIUM, val startIcon: ImageConfig? = null, val letterSpacing: Int = 0, val backgroundOpacity: Float = 0.0f, val colorOpacity: Float = 0.0f, val statusIconSize: Int = 16) : ViewProperties, Parcelable

Constructors

Link copied to clipboard
constructor(viewType: ViewType = ViewType.BUTTON, weight: Float = 0.0f, backgroundColor: String? = null, padding: Int = 0, borderRadius: Int = 14, alignment: ViewAlignment = ViewAlignment.NONE, fillMaxWidth: Boolean = true, fillMaxHeight: Boolean = false, clickable: String = "false", visible: String = "true", opacity: Float? = null, contentColor: String? = null, enabled: String = "true", text: String? = null, status: String, fontSize: Float = 14.0f, actions: List<ActionConfig> = emptyList(), buttonType: ButtonType = ButtonType.MEDIUM, startIcon: ImageConfig? = null, letterSpacing: Int = 0, backgroundOpacity: Float = 0.0f, colorOpacity: Float = 0.0f, statusIconSize: Int = 16)

Properties

Link copied to clipboard
Link copied to clipboard
open override val alignment: ViewAlignment
Link copied to clipboard
open override val backgroundColor: String? = null
Link copied to clipboard
Link copied to clipboard
open override val borderRadius: Int = 14
Link copied to clipboard
Link copied to clipboard
open override val clickable: String
Link copied to clipboard
val colorOpacity: Float = 0.0f
Link copied to clipboard
val contentColor: String? = null
Link copied to clipboard
Link copied to clipboard
open override val fillMaxHeight: Boolean = false
Link copied to clipboard
open override val fillMaxWidth: Boolean = true
Link copied to clipboard
val fontSize: Float = 14.0f
Link copied to clipboard
Link copied to clipboard
open override val opacity: Float? = null
Link copied to clipboard
open override val padding: Int = 0
Link copied to clipboard
val startIcon: ImageConfig? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val text: String? = null
Link copied to clipboard
open override val viewType: ViewType
Link copied to clipboard
open override val visible: String
Link copied to clipboard
open override val weight: Float = 0.0f

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open override fun interpolate(computedValuesMap: Map<String, Any>): ButtonProperties
Link copied to clipboard
fun statusColor(computedValuesMap: Map<String, Any>): Color

This function determines the status color to display depending on the value of the service status

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)