@zebra-fed/zeta-web
    Preparing search index...

    Class ZetaAccordionItem

    The accordion is a control element comprising a vertically stacked list of items, such as labels or thumbnails. Each item can be "expanded" or "collapsed" to reveal the content associated with that item. There can be zero expanded items, exactly one, or more than one item expanded at a time, depending on the configuration.

    • content displayed when the accordion item is expanded.

    header - content displayed in the header of the accordion item.

    item-header - The header of the accordion item.

    item-content - The content area of the accordion item.

    header-content - The content area of the accordion item header.

    item-expanded - Dispatched when the accordion item is expanded or collapsed.

    item-selected - Dispatched when the accordion item is selected or deselected.

    Hierarchy

    • ContourableInterface<this> & LitElement<this>
      • ZetaAccordionItem
    Index

    Other

    • Returns ZetaAccordionItem

    expanded: boolean = false

    Whether the accordion item is initially open.

    hasDefaultSlot: boolean = false
    navigation: boolean = false

    Whether the accordion item is a navigation item.

    rounded: boolean
    selectable: boolean = false

    Whether the item is selectable

    selected: boolean = false

    Whether the accordion item is initially selected.

    title: string

    Title of the accordion item.

    styles: CSSResultGroup[] = ...

    rendering

    • Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart - typically a TemplateResult. Setting properties inside this method will not trigger the element to update.

      Returns TemplateResult<1>

    updates

    • Invoked when the element is first updated. Implement to perform one time work on the element after update.

      firstUpdated() {
      this.renderRoot.getElementById('my-text-area').focus();
      }

      Setting properties inside this method will trigger the element to update again after this update cycle completes.

      Returns void