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

    Class ZetaAccordion

    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.

    Hierarchy

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

    Other

    • Returns ZetaAccordion

    expandMultiple: boolean = false

    Determines if multiple items can be open at the same time. When false, only one accordion item can be open at a time.

    inCard: boolean = false

    Determines if the ZetaAccordion should be in a card container.

    rounded: boolean
    selectMultiple: boolean = false

    Determines if multiple accordion items can be selected.

    styles: CSSResultGroup[] = ...

    lifecycle

    • Invoked when the component is removed from the document's DOM.

      This callback is the main signal to the element that it may no longer be used. disconnectedCallback() should ensure that nothing is holding a reference to the element (such as event listeners added to nodes external to the element), so that it is free to be garbage collected.

      disconnectedCallback() {
      super.disconnectedCallback();
      window.removeEventListener('keydown', this._handleKeydown);
      }

      An element may be re-connected after being disconnected.

      Returns void

    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.

      Parameters

      • _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>

        Map of changed properties with old values

      Returns void