function logExpansionHelper(expanding) {
  let rows = $('message-logs-table').rows;
  for (let i = 1; i < rows.length; i++) {
    if (rows[i].className.includes('expansion-row')) {
      rows[i].className = expanding ?
          rows[i].className.replace('hide', 'show') :
          rows[i].className.replace('show', 'hide');
      let arrowButton = rows[i - 1].querySelector('.arrow');
      if (arrowButton) {
        arrowButton.className = expanding ? 'arrow up' : 'arrow down';
      }
    }
  }
}
/**
 * Helper method to expand or collapse all logs in the message-logs-table.
 *
 * @param {boolean} expanding True for expand all log messages, and false to
 * collapse all log messages.
 */
Helper method to expand or collapse all logs in the message-logs-table.
@param {boolean} expanding True for expand all log messages, and false to
collapse all log messages.
Helper method to expand or collapse all logs in the message - logs - table . @param { boolean } expanding True for expand all log messages and false to collapse all log messages .
function logExpansionHelper(expanding) {
  let rows = $('message-logs-table').rows;
  for (let i = 1; i < rows.length; i++) {
    if (rows[i].className.includes('expansion-row')) {
      rows[i].className = expanding ?
          rows[i].className.replace('hide', 'show') :
          rows[i].className.replace('show', 'hide');
      let arrowButton = rows[i - 1].querySelector('.arrow');
      if (arrowButton) {
        arrowButton.className = expanding ? 'arrow up' : 'arrow down';
      }
    }
  }
}
function logExpansionHelper ( expanding ) { let rows = $ ( 'message-logs-table' ) . rows ; for ( let i = 1 ; i < rows . length ; i ++ ) { if ( rows [ i ] . className . includes ( 'expansion-row' ) ) { rows [ i ] . className = expanding ? rows [ i ] . className . replace ( 'hide' , 'show' ) : rows [ i ] . className . replace ( 'show' , 'hide' ) ; let arrowButton = rows [ i - 1 ] . querySelector ( '.arrow' ) ; if ( arrowButton ) { arrowButton . className = expanding ? 'arrow up' : 'arrow down' ; } } } }
Helper method to expand or collapse all logs in the message-logs-table.
Helper method to expand or collapse all logs in the message - logs - table .