OudsAnnotatedHelperText

An annotated string for helper text in text input components.

This class supports strong (bold/emphasized) text formatting to highlight important information in helper text. It is used by components like com.orange.ouds.core.component.OudsTextInput, com.orange.ouds.core.component.OudsTextArea, com.orange.ouds.core.component.OudsPasswordInput, and com.orange.ouds.core.component.OudsPinCodeInput.

Use buildOudsAnnotatedHelperText to create instances:

val helperText = buildOudsAnnotatedHelperText {
append("Password must be ")
withStrong { append("at least 8 characters") }
append(" long")
}

OudsTextInput(
textFieldState = rememberTextFieldState(),
label = "Password",
helperText = helperText
)

Types

Link copied to clipboard

Builder for creating OudsAnnotatedHelperText with strong text formatting.

Properties

Link copied to clipboard
open override val length: Int
Link copied to clipboard

The plain text content without any formatting annotations.

Functions

Link copied to clipboard
fun capitalize(localeList: LocaleList = LocaleList.current): OudsAnnotatedHelperText

Create capitalized OudsAnnotatedString.

Link copied to clipboard
fun decapitalize(localeList: LocaleList = LocaleList.current): OudsAnnotatedHelperText

Create decapitalized OudsAnnotatedString.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): Char
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Concatenates this annotated string with another annotated string.

Link copied to clipboard
open override fun subSequence(startIndex: Int, endIndex: Int): CharSequence
Link copied to clipboard
fun toLowerCase(localeList: LocaleList = LocaleList.current): OudsAnnotatedHelperText

Create lower case transformed OudsAnnotatedString.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun toUpperCase(localeList: LocaleList = LocaleList.current): OudsAnnotatedHelperText

Create upper case transformed OudsAnnotatedString.