아코디언 그룹 (ion-accordion-group)
아코디언 그룹(Accordion Group)은 아코디언 인스턴스들을 담아 두는 컨테이너예요. 아코디언들의 상태를 관리하고 키보드 탐색을 제공해요. 아코디언 하나하나의 사용법은 아코디언 문서에서, 그리고 이 그룹 문서에서 함께 살펴보세요.
출처: 문서
본문
Encapsulation: shadow
아코디언 그룹은 아코디언 인스턴스들의 컨테이너예요. 아코디언들의 상태를 관리하고 키보드 탐색을 제공해요.
자세한 내용은 Accordion 문서를 참고해 주세요.
Interfaces
AccordionGroupChangeEventDetail
interface AccordionGroupChangeEventDetail<T = any> {
value: T;
}
AccordionGroupCustomEvent
필수는 아니지만, 이 인터페이스를 CustomEvent 인터페이스 대신 사용하면 이 컴포넌트에서 발생하는 Ionic 이벤트에 대해 더 강력한 타입을 얻을 수 있어요.
interface AccordionGroupCustomEvent<T = any> extends CustomEvent {
detail: AccordionGroupChangeEventDetail<T>;
target: HTMLIonAccordionGroupElement;
}
Properties
animated
Description: If true, all accordions inside of the accordion group will animate when expanding or collapsing.
Attribute: animated
Type: boolean
Default: true
disabled
Description: If true, the accordion group cannot be interacted with.
Attribute: disabled
Type: boolean
Default: false
expand
Description: Describes the expansion behavior for each accordion. Possible values are "compact" and "inset". Defaults to "compact".
Attribute: expand
Type: "compact" | "inset"
Default: 'compact'
mode
Description: The mode determines which platform styles to use. This is a virtual property that is set once during initialization and will not update if you change its value after the initial render.
Attribute: mode
Type: "ios" | "md"
Default: undefined
multiple
Description: If true, the accordion group can have multiple accordion components expanded at the same time.
Attribute: multiple
Type: boolean | undefined
Default: undefined
readonly
Description: If true, the accordion group cannot be interacted with, but does not alter the opacity.
Attribute: readonly
Type: boolean
Default: false
value
Description: The value of the accordion group. This controls which accordions are expanded. This should be an array of strings only when multiple="true"
Attribute: value
Type: null | string | string[] | undefined
Default: undefined
Events
| Name | Description | Bubbles |
|---|---|---|
ionChange |
Emitted when the value property has changed as a result of a user action such as a click. This event will not emit when programmatically setting the value property. |
true |
Methods
No public methods available for this component.
CSS Shadow Parts
No CSS shadow parts available for this component.
CSS Custom Properties
No CSS custom properties available for this component.
Slots
| Name | Description |
|---|---|
| The default slot |
더 알아보기 (Learn more)
ion-accordion-group은 여러 아코디언의 열림 상태를 한곳에서 관리하는 핵심 컨테이너예요. value, multiple, expand 같은 프로퍼티로 동작을 제어하고, 실제 토글 UI 구조는 아코디언 문서에서 함께 확인해 보세요.