item

fun item(label: String, subListType: OudsBulletListType? = null, subListTextStyle: OudsBulletListTextStyle? = null, builder: OudsBulletListBuilder.() -> Unit? = null)

Adds an item to the bullet list.

This function can also define a nested sub-list by providing a builder lambda.

An overload accepting annotated types is available for rich text formatting.

Parameters

label

The text content of the list item.

subListType

The specific OudsBulletListType for the nested sub-list, if any. If null, the type is inherited from the parent list.

subListTextStyle

The specific OudsBulletListTextStyle for the nested sub-list, if any. If null, the text style is inherited from the parent list.

builder

A lambda scope for defining nested list items.


fun item(label: OudsAnnotatedBulletListLabel, subListType: OudsBulletListType? = null, subListTextStyle: OudsBulletListTextStyle? = null, builder: OudsBulletListBuilder.() -> Unit? = null)

Adds an item to the bullet list.

This function can also define a nested sub-list by providing a builder lambda.

An overload accepting plain types is available for simple text without formatting.

Parameters

label

The annotated text content of the list item.

subListType

The specific OudsBulletListType for the nested sub-list, if any. If null, the type is inherited from the parent list.

subListTextStyle

The specific OudsBulletListTextStyle for the nested sub-list, if any. If null, the text style is inherited from the parent list.

builder

A lambda scope for defining nested list items.