kor TürkçeGitHub

Accordion

Expands and collapses sections of content.

kor/ui/AccordionSource

When to use

  • Hide secondary content that some users need.

Examples

Delivery questions

Loading the example

<k:Accordion multiple="false">
	<k:AccordionItem title="Delivery" text="Address and carrier" icon="truck" open="true"><k:Text text="Delivered to the Gebze warehouse."/></k:AccordionItem>
	<k:AccordionItem title="Documents" icon="file-text" count="3" state="info"><k:Text text="Invoice, waybill and certificate."/></k:AccordionItem>
</k:Accordion>

API

Properties

NameTypeDefaultDescription
multiplebooleantrueWhether several sections can be open at once

Aggregations

NameTypeDescription
itemsAccordionItem[]Sections

Events

NameTypeDescription
togglekey: string
open: boolean
A section was opened or closed

AccordionItem

An accordion section.

Properties

NameTypeDefaultDescription
keystringKey
titlestringTitle
textstringSubtitle
iconstringLeading icon
countstringCounter
statestringnoneCounter status
openbooleanfalseWhether the section is open

Aggregations

NameTypeDescription
contentsap.ui.core.Control[]Content. Rendered only while open

Related

TabsCard