Widget Documentation: LMFeedAlertDialogView
Widget: LMFeedAlertDialogView
The LMFeedAlertDialogView
is a customizable dialog view for presenting alerts, supporting elements like titles, subtitles, buttons, input fields, and configurable styles.
Method | Description |
---|---|
setStyle(alertDialogStyle: LMFeedAlertDialogViewStyle) | Applies the given style to the alert dialog view. |
setAlertTitle(title: String) | Sets the title of the alert dialog. |
setAlertSubtitle(subtitle: String) | Sets the subtitle of the alert dialog. |
setAlertSelectorText(selector: String) | Sets the text for the selector in the alert dialog. |
setAlertPositiveButtonText(positiveButtonText: String) | Sets the text for the positive button in the alert dialog. |
setAlertNegativeButtonText(negativeButtonText: String) | Sets the text for the negative button in the alert dialog. |
setAlertInputReasonVisibility(isVisible: Boolean) | Toggles the visibility of the input reason field. |
setAlertInputHint(hint: String) | Sets the hint text for the input field. |
setAlertSelectorClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the selector. |
setPositiveButtonClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the positive button. |
setNegativeButtonClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the negative button. |
setPositiveButtonEnabled(isEnabled: Boolean) | Toggles the enabled state of the positive button. |
getAlertInputReason(): String} | Retrieves the text inputted in the reason field. |
View Style: LMFeedAlertDialogViewStyle
The LMFeedAlertDialogViewStyle
defines the appearance and layout properties for the LMFeedAlertDialogView
, including configurations for text, buttons, and the dialog box.
Field | Description | Type |
---|---|---|
alertTitleText | Configures the text style for the alert title. | LMFeedTextStyle |
alertSubtitleText | Configures the text style for the alert subtitle. | LMFeedTextStyle |
alertNegativeButtonStyle | Configures the text style for the negative button. | LMFeedTextStyle |
alertPositiveButtonStyle | Configures the text style for the positive button. | LMFeedTextStyle |
alertSelectorStyle | Configures the text style for the selector. | LMFeedTextStyle |
alertInputStyle | Configures the style for the input field. | LMFeedEditTextStyle |
alertActivePositiveButtonColor | Specifies the color for the active positive button. | Int |
alertBoxElevation | Specifies the elevation of the alert dialog box. | Int |
alertBoxCornerRadius | Specifies the corner radius of the alert dialog box. | Int |
backgroundColor | Specifies the background color of the alert dialog box. | Int |