Icon

data class Icon(val icon: ImageVector, val defaultErrorTintColor: Color = SurfaceColor.Error, val defaultTintColor: Color = SurfaceColor.Primary, val selectedErrorTintColor: Color = TextColor.OnErrorContainer, val selectedTintColor: Color = TextColor.OnPrimaryContainer) : MenuLeadingElement

DHIS2 Icon, class to control the MenuLeadingElement trailing element icon.

Parameters

icon

: controls the icon to be shown.

defaultErrorTintColor

: controls the error style tint color.

defaultTintColor

: controls the default tint color.

selectedErrorTintColor

: controls the error style tint color when selected.

selectedTintColor

: controls the tint color when selected.

Constructors

Link copied to clipboard
constructor(icon: ImageVector, defaultErrorTintColor: Color = SurfaceColor.Error, defaultTintColor: Color = SurfaceColor.Primary, selectedErrorTintColor: Color = TextColor.OnErrorContainer, selectedTintColor: Color = TextColor.OnPrimaryContainer)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard