function addContentSections_(contentNode, showText, hideText) {
    var sections = {};

    sections.summary = addNode(contentNode, 'span');
    sections.summary.classList.add('reporting-content-summary');

    var button = addNode(contentNode, 'span');
    button.classList.add('reporting-content-expand-button');
    addTextNode(button, showText);
    button.onclick = function() {
      toggleNodeDisplay(sections.detail);
      button.textContent =
          getNodeDisplay(sections.detail) ? hideText : showText;
    };

    sections.detail = addNode(contentNode, 'div');
    sections.detail.classList.add('reporting-content-detail');
    setNodeDisplay(sections.detail, false);

    return sections;
  }
/**
   * Adds nodes to the "content" cell for a report that allow you to show a
   * summary as well as collapsable detail.  We will add a clickable button that
   * toggles between showing and hiding the detail; its label will be `showText`
   * when the detail is hidden, and `hideText` when it's visible.
   *
   * The result is an object containing `summary` and `detail` nodes.  You can
   * add whatever content you want to each of these nodes.  The summary should
   * be a one-liner, and will be a <span>.  The detail can be as large as you
   * want, and will be a <div>.
   */
Adds nodes to the "content" cell for a report that allow you to show a
summary as well as collapsable detail.  We will add a clickable button that
toggles between showing and hiding the detail; its label will be `showText`
when the detail is hidden, and `hideText` when it's visible.

The result is an object containing `summary` and `detail` nodes.  You can
add whatever content you want to each of these nodes.  The summary should
be a one-liner, and will be a .  The detail can be as large as you
want, and will be a .
Adds nodes to the " content " cell for a report that allow you to show a summary as well as collapsable detail . We will add a clickable button that toggles between showing and hiding the detail ; its label will be ` showText ` when the detail is hidden and ` hideText ` when it ' s visible . The result is an object containing ` summary ` and ` detail ` nodes . You can add whatever content you want to each of these nodes . The summary should be a one - liner and will be a . The detail can be as large as you want and will be a .
function addContentSections_(contentNode, showText, hideText) {
    var sections = {};
    sections.summary = addNode(contentNode, 'span');
    sections.summary.classList.add('reporting-content-summary');
    var button = addNode(contentNode, 'span');
    button.classList.add('reporting-content-expand-button');
    addTextNode(button, showText);
    button.onclick = function() {
      toggleNodeDisplay(sections.detail);
      button.textContent =
          getNodeDisplay(sections.detail) ? hideText : showText;
    };
    sections.detail = addNode(contentNode, 'div');
    sections.detail.classList.add('reporting-content-detail');
    setNodeDisplay(sections.detail, false);
    return sections;
  }
function addContentSections_ ( contentNode , showText , hideText ) { var sections = { } ; sections . summary = addNode ( contentNode , 'span' ) ; sections . summary . classList . add ( 'reporting-content-summary' ) ; var button = addNode ( contentNode , 'span' ) ; button . classList . add ( 'reporting-content-expand-button' ) ; addTextNode ( button , showText ) ; button . onclick = function ( ) { toggleNodeDisplay ( sections . detail ) ; button . textContent = getNodeDisplay ( sections . detail ) ? hideText : showText ; } ; sections . detail = addNode ( contentNode , 'div' ) ; sections . detail . classList . add ( 'reporting-content-detail' ) ; setNodeDisplay ( sections . detail , false ) ; return sections ; }
Adds nodes to the "content" cell for a report that allow you to show a
 summary as well as collapsable detail.
Adds nodes to the " content " cell for a report that allow you to show a summary as well as collapsable detail .