OudsAnnotatedErrorMessage
An annotated string for error messages in OUDS components.
This class supports strong (bold/emphasized) text formatting to highlight critical information in error messages. It is used by components like com.orange.ouds.core.component.OudsTextInput, com.orange.ouds.core.component.OudsTextArea, com.orange.ouds.core.component.OudsPasswordInput, com.orange.ouds.core.component.OudsPinCodeInput, com.orange.ouds.core.component.OudsCheckboxItem, com.orange.ouds.core.component.OudsRadioButtonItem, and com.orange.ouds.core.component.OudsSwitchItem through the com.orange.ouds.core.component.common.OudsError class.
Use buildOudsAnnotatedErrorMessage to create instances:
val errorMessage = buildOudsAnnotatedErrorMessage {
append("This field ")
withStrong { append("cannot") }
append(" be empty")
}
OudsTextInput(
textFieldState = rememberTextFieldState(),
label = "Email",
error = OudsError(annotatedMessage = errorMessage)
)Types
Builder for creating OudsAnnotatedErrorMessage with strong text formatting.
Properties
Functions
Create capitalized OudsAnnotatedString.
Create decapitalized OudsAnnotatedString.
Concatenates this annotated string with another annotated string.
Create lower case transformed OudsAnnotatedString.
Create upper case transformed OudsAnnotatedString.