function sectionView(section, data, parentSection) {
  let rows = []
  if (isEmpty(data)) return rows

  // Add section title if not at the root and if the section is labeled
  if (parentSection === 'variable') {
    let sectionTitle = data['name'] || formatKey(section)
    rows.push(
      $('<tr>').append(
        $('<th class="section" colspan=2>').append(
          $(`<h3 class="labeled ${section}">`).text(sectionTitle)))
    )
  }

  // For each properties in data object
  let dataProperties = Object.getOwnPropertyNames(data)
  for (let property of dataProperties) {
    let propConfig = getPropertyConfiguration(property)
    rows = rows.concat(createPropertyView(
      property, data[property], propConfig, section
    ))
  }
  return rows
}
// Create view for section of data (may produce multiple table rows)
Create view for section of data (may produce multiple table rows)
Create view for section of data ( may produce multiple table rows )
function sectionView(section, data, parentSection) {
  let rows = []
  if (isEmpty(data)) return rows
  if (parentSection === 'variable') {
    let sectionTitle = data['name'] || formatKey(section)
    rows.push(
      $('<tr>').append(
        $('<th class="section" colspan=2>').append(
          $(`<h3 class="labeled ${section}">`).text(sectionTitle)))
    )
  }
  let dataProperties = Object.getOwnPropertyNames(data)
  for (let property of dataProperties) {
    let propConfig = getPropertyConfiguration(property)
    rows = rows.concat(createPropertyView(
      property, data[property], propConfig, section
    ))
  }
  return rows
}
function sectionView ( section , data , parentSection ) { let rows = [ ] if ( isEmpty ( data ) ) return rows if ( parentSection === 'variable' ) { let sectionTitle = data [ 'name' ] || formatKey ( section ) rows . push ( $ ( '<tr>' ) . append ( $ ( '<th class="section" colspan=2>' ) . append ( $ ( ` ${ section } ` ) . text ( sectionTitle ) ) ) ) } let dataProperties = Object . getOwnPropertyNames ( data ) for ( let property of dataProperties ) { let propConfig = getPropertyConfiguration ( property ) rows = rows . concat ( createPropertyView ( property , data [ property ] , propConfig , section ) ) } return rows }
Create view for section of data (may produce multiple table rows)
Create view for section of data ( may produce multiple table rows )
// Add section title if not at the root and if the section is labeled // For each properties in data object