menuItem(arg1) {
    /** Create new element */
    const menuItem = new strapped.MenuItem();
    
    /** Add to last container of indicated type */
    if ( typeof arg1 == 'string' && arg1.length > 0 )
      this.last(arg1).append(menuItem);
    else
      this.last('Menu').append(menuItem);
    
    /** Allow for call chaining */
    return menuItem;
  }
/**
   * Add new menu item to page.
   * @signature menuItem() Add new menu item to last menu
   * @signature menuItem(string) Add new menu item to last container type indicated by (string)
   * @return This new menu item for call chaining
   */
Add new menu item to page.
@signature menuItem() Add new menu item to last menu
@signature menuItem(string) Add new menu item to last container type indicated by (string)
@return This new menu item for call chaining
Add new menu item to page . @signature menuItem () Add new menu item to last menu @signature menuItem ( string ) Add new menu item to last container type indicated by ( string ) @return This new menu item for call chaining
menuItem(arg1) {
    const menuItem = new strapped.MenuItem();
    if ( typeof arg1 == 'string' && arg1.length > 0 )
      this.last(arg1).append(menuItem);
    else
      this.last('Menu').append(menuItem);
    return menuItem;
  }
menuItem ( arg1 ) { const menuItem = new strapped . MenuItem ( ) ; if ( typeof arg1 == 'string' && arg1 . length > 0 ) this . last ( arg1 ) . append ( menuItem ) ; else this . last ( 'Menu' ) . append ( menuItem ) ; return menuItem ; }
Add new menu item to page.
Add new menu item to page .
/** Create new element */ /** Add to last container of indicated type */ /** Allow for call chaining */