SelectionButton

constructor(text: String, icon: IconSource? = null, type: ButtonStyle = ButtonStyle.TEXT)

Creates a new instance of SelectionButton with the given text, icon and type.

Parameters

text

The text to be displayed on the button.

icon

The icon to be displayed on the button. Can be null.

type

The style of the button. Default value is ButtonStyle.TEXT.


constructor(@StringRes textRes: Int, icon: IconSource? = null, type: ButtonStyle = ButtonStyle.TEXT)

Creates a new instance of SelectionButton with the given string resource identifier, icon and type.

Parameters

textRes

The string resource identifier to be displayed on the button.

icon

The icon to be displayed on the button. Can be null.

type

The style of the button. Default value is ButtonStyle.TEXT.


constructor(annotatedString: AnnotatedString, icon: IconSource? = null, type: ButtonStyle = ButtonStyle.TEXT)

Creates a new instance of SelectionButton with the given AnnotatedString, icon and type.

Parameters

annotatedString

The annotated string to be displayed on the button.

icon

The icon to be displayed on the button. Can be null.

type

The style of the button. Default value is ButtonStyle.TEXT.