ModalHeaderAction

data class ModalHeaderAction(@DrawableRes val iconResource: Int, val contentDescription: String? = null, val action: () -> Unit)

A ModalHeaderAction is represented as an IconButton added to the header component

Constructors

Link copied to clipboard
constructor(@DrawableRes iconResource: Int, contentDescription: String? = null, action: () -> Unit)

Properties

Link copied to clipboard
val action: () -> Unit

Will be called when the user clicks the button.

Link copied to clipboard

text used by accessibility services to describe what this icon represents. This should always be provided unless this icon is used for decorative purposes, and does not represent a meaningful action that a user can take. This text should be localized, such as by using androidx.compose.ui.res.stringResource or similar.

Link copied to clipboard

Resources object to query the image file from.