Skip to content

BaseExpandRow

Props

Prop nameDescriptionTypeValuesDefault
expandablespecify if box is expandableboolean-true
titleTitle of the row.string-''
subtitleOptional subtitle of the row.string-''
iconLets you optionally specify an icon that is displayed before the title.
For valid values, see BaseIcon.
string-''
bodyHasBackgroundset the background of collapsed expand-row-bodyboolean-true
isExpandedSet this to true if the row should be in expanded state.boolean-false
isSelectableLets you specify if the row is selectable. If true, a check box appears
on the left side. The isSelected prop determines whether the check box is
actually selected or not.
boolean-false
isSelectedLets you specify if the row is currently selected.boolean-false
assistiveTextprovide assistive text for screen readers
label: if title or subtitle is empty this text is read
object-{
label: 'Expandable element'
}

Events

Event namePropertiesDescription
selectedundefined Boolean - was row selectedEvent triggered when the check box is clicked; this is applicable
only if the row is selectable and thus has a check box.
The payload indicates the selected state (true or false).
expandedundefined Boolean - is row expandedEvent triggered when the row is expanded or collapsed.
The payload value true indicates expanded state, false indicates collapsed state.

Slots

NameDescriptionBindings
iconslot to inject icon/image left side before label
defaultslot for expanded content

Demo

Component to toggle content area with configuration options:

Selectable row in expanded state, having both a title and a subtitle, without icon: