OudsAnnotatedBulletListLabel
An annotated string for bullet list item labels.
This class supports both strong (bold/emphasized) text and clickable links to create rich, interactive bullet list items. It is used by com.orange.ouds.core.component.OudsBulletList component.
Use buildOudsAnnotatedBulletListLabel to create instances:
OudsBulletList {
item(label = buildOudsAnnotatedBulletListLabel {
withStrong { append("Important:") }
append(" Read this carefully")
})
item(label = buildOudsAnnotatedBulletListLabel {
append("For more information, visit our ")
withLink(OudsLinkAnnotation.Url("https://help.example.com")) {
append("help center")
}
})
}Content copied to clipboard
Types
Link copied to clipboard
class Builder(capacity: Int = 16) : OudsAnnotatedString.Builder<OudsAnnotatedBulletListLabel> , OudsAnnotatedString.StrongBuilder, OudsAnnotatedString.LinkBuilder
Builder for creating OudsAnnotatedBulletListLabel with strong text and link formatting.
Properties
Functions
Link copied to clipboard
fun capitalize(localeList: LocaleList = LocaleList.current): OudsAnnotatedString<OudsAnnotatedBulletListLabel>
Create capitalized OudsAnnotatedString.
Link copied to clipboard
fun decapitalize(localeList: LocaleList = LocaleList.current): OudsAnnotatedString<OudsAnnotatedBulletListLabel>
Create decapitalized OudsAnnotatedString.
Link copied to clipboard
operator fun plus(other: OudsAnnotatedString<OudsAnnotatedBulletListLabel>): OudsAnnotatedString<OudsAnnotatedBulletListLabel>
Concatenates this annotated string with another annotated string.
Link copied to clipboard
Link copied to clipboard
fun toLowerCase(localeList: LocaleList = LocaleList.current): OudsAnnotatedString<OudsAnnotatedBulletListLabel>
Create lower case transformed OudsAnnotatedString.
Link copied to clipboard
fun toUpperCase(localeList: LocaleList = LocaleList.current): OudsAnnotatedString<OudsAnnotatedBulletListLabel>
Create upper case transformed OudsAnnotatedString.