Text announced by screen readers when the area got closed.
Its hylo-page-root translations object key is "accordionAnnouncementClosed".
The delay of the announcement in millisecond.
Text announced by screen readers when the area got opened.
Its hylo-page-root translations object key is "accordionAnnouncementOpened".
The time in milliseconds it takes, until the announcement text is removed from the hylo-accessibility-announcement component included in this component. The announcement is automaticly removed when a keydown or click event occurs. If none is triggered a screen reader might reach the announcement component and read the text.
Set to 0 to disable this functionality.
Closes the accordion item when it looses focus by a key press. Can also be achieved by giving the class "hylo-accordion-close-on-blur" to the element or one of its ancestor elements.
Copies the header's text content in front of the items body in a hylo-sr-only component and sets the header itself to aria-hidden="true". Sets always the tabIndex of the body to 0 when "openOnFocus" when it is not already >= 0 or is not set through the element attribute "tabindex". Can also be achieved by giving the class "hylo-accordion-header-to-body" to the element or one of its ancestor elements.
Happens when the component got initialised.
Is the accordion item open? Can be used to set an initial state.
Opens the accordion item when it gains focus by a key press. Can also be achieved by giving the class "hylo-accordion-open-on-focus" to the element or one of its ancestor elements.
Sets the tabIndex of the hylo-accordion-body to 0 if no child element can gain the focus and it is not already >= 0 or is not set through the element attribute "tabindex".
Adds the class "hylo-focused".
Scrolls the accordion item header into view when the accordion item gets opened. Can also be set for the whole hylo-accordion component.
Fires when the accordion item gets closed.
Fires when the accordion item gets opened.
Generated using TypeDoc
An accordion item.
Builds an accordion. Place it inside an hylo-accordion component. Consists of an hylo-accordion-item-header and an hylo-accordion-item-body component.
The class "open" is added/removed to this element depending on its status.
Listens for hyloImageLoaded events from hylo-responsive-image components to reset its height.