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

Parameters

iconResource

Resources object to query the image file from.

contentDescription

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.

action

Will be called when the user clicks the button.

Constructors

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

Properties

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