createSection (components) {
    var menuitems = []
    for (let i = 0; i < components.length; i++) {
      menuitems.push(this.createComponent(components[i]))

      if (i !== components.length - 1) {
        this.layout.afterLine()
      }
    }

    return menuitems
  }
/**
   * Iterates through given components in a section
   * @param {*} components
   */
Iterates through given components in a section
@param {*} components
Iterates through given components in a section @param { * } components
createSection (components) {
    var menuitems = []
    for (let i = 0; i < components.length; i++) {
      menuitems.push(this.createComponent(components[i]))
      if (i !== components.length - 1) {
        this.layout.afterLine()
      }
    }
    return menuitems
  }
createSection ( components ) { var menuitems = [ ] for ( let i = 0 ; i < components . length ; i ++ ) { menuitems . push ( this . createComponent ( components [ i ] ) ) if ( i !== components . length - 1 ) { this . layout . afterLine ( ) } } return menuitems }
Iterates through given components in a section
 @param {*} components
Iterates through given components in a section @param { * } components