function initializeExpandingColumnComponents() {
  const expandingColumns = document.querySelectorAll('.rev-ExpandingCol-pane')

  for (let i = 0; i < expandingColumns.length; i++) {
    const expandingColumnComponent = expandingColumns[i]

    const expander = expandingColumnComponent.querySelector(
      '.rev-ExpandingCol-expander'
    )

    expander.addEventListener('click', (e) => {
      e.preventDefault()

      if (expandingColumnComponent.classList.contains('is-closed')) {
        openExpandingColumn(expandingColumnComponent)
      } else {
        closeExpandingColumn(expandingColumnComponent)
      }
    })
  }
}
/**
 * Initializes all expanding column components on page
 * @returns {void}
 */
Initializes all expanding column components on page
@returns {void}
Initializes all expanding column components on page @returns { void }
function initializeExpandingColumnComponents() {
  const expandingColumns = document.querySelectorAll('.rev-ExpandingCol-pane')
  for (let i = 0; i < expandingColumns.length; i++) {
    const expandingColumnComponent = expandingColumns[i]
    const expander = expandingColumnComponent.querySelector(
      '.rev-ExpandingCol-expander'
    )
    expander.addEventListener('click', (e) => {
      e.preventDefault()
      if (expandingColumnComponent.classList.contains('is-closed')) {
        openExpandingColumn(expandingColumnComponent)
      } else {
        closeExpandingColumn(expandingColumnComponent)
      }
    })
  }
}
function initializeExpandingColumnComponents ( ) { const expandingColumns = document . querySelectorAll ( '.rev-ExpandingCol-pane' ) for ( let i = 0 ; i < expandingColumns . length ; i ++ ) { const expandingColumnComponent = expandingColumns [ i ] const expander = expandingColumnComponent . querySelector ( '.rev-ExpandingCol-expander' ) expander . addEventListener ( 'click' , ( e ) => { e . preventDefault ( ) if ( expandingColumnComponent . classList . contains ( 'is-closed' ) ) { openExpandingColumn ( expandingColumnComponent ) } else { closeExpandingColumn ( expandingColumnComponent ) } } ) } }
Initializes all expanding column components on page
 @returns {void}
Initializes all expanding column components on page @returns { void }