メインコンテンツまでスキップ
バージョン: v8

ion-accordion

shadow

Properties

disabled

Descriptiontrueの場合、アコーディオンは対話することができません。
Attributedisabled
Typeboolean
Defaultfalse

mode

Descriptionmodeは、どのプラットフォームのスタイルを使用するかを決定します。
Attributemode
Type"ios" | "md"
Defaultundefined

readonly

Descriptiontrueの場合、アコーディオンはインタラクティブに操作することはできませんが、不透明度は変化しません。
Attributereadonly
Typeboolean
Defaultfalse

toggleIcon

Description使用するトグルアイコンです。このアイコンは、アコーディオンの展開・折りたたみ時に回転されます。
Attributetoggle-icon
Typestring
DefaultchevronDown

toggleIconSlot

Descriptionトグルアイコンを配置する ion-item の内側のスロット。デフォルトは "end" です。
Attributetoggle-icon-slot
Type"end" | "start"
Default'end'

value

Descriptionアコーディオンの値です。デフォルトは自動生成された値です。
Attributevalue
Typestring
Defaultion-accordion-${accordionIds++}

CSS Shadow Parts

NameDescription
contentcontent slotのラッパー要素。
expanded拡張された要素です。ヘッダとコンテンツの部分と組み合わせて使用することができます(例:::part(header expanded))。
headerheader slotのラッパーの要素です。

Slots

NameDescription
contentコンテンツはヘッダーの下に配置され、展開状態に応じて表示または非表示になります。
headerコンテンツは上部に配置され、アコーディオンアイテムの拡大・縮小に使用されます。