ListItem

data class ListItem(val id: String, val type: CardItemType, val titleText: String, val descriptionText: String, val placeholder: Content.Placeholder, val primaryAction: Action, val primaryActionText: String = "", val matchingRules: List<Int>, val exclusionRules: List<Int>) : CardItem

Represents both TWO_LINE_LIST_ITEM and FEATURED_TWO_LINE_SINGLE_ACTION_LIST_ITEM. The type field determines the visual styling.

Constructors

Link copied to clipboard
constructor(id: String, type: CardItemType, titleText: String, descriptionText: String, placeholder: Content.Placeholder, primaryAction: Action, primaryActionText: String = "", matchingRules: List<Int>, exclusionRules: List<Int>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val titleText: String
Link copied to clipboard
open override val type: CardItemType