Function that enables toggling the active area to expand and collapse the accordion item.
The id of the AccordionItem element
Whether only the icon toggles the item
the API response envelope as a JSON string: { code, isSuccess, message, value? }
{ code, isSuccess, message, value? }
Function that enables toggling the active area to expand and collapse the accordion item.