optionGroup(arg1) {
    /** Create new element */
    const optionGroup = new strapped.OptionGroup();
    
    /** Add to last container of indicated type */
    if ( typeof arg1 == 'string' && arg1.length > 0 )
      this.last(arg1).append(optionGroup);
    else
      this.last('Select').append(optionGroup);
    
    /** Allow for call chaining */
    return optionGroup;
  }
/**
   * Add new option group to page.
   * @signature optionGroup() Add new option group to last select
   * @signature optionGroup(string) Add new option group to last container type 
   * indicated by (string)
   * @return This new option group for call chaining
   */
Add new option group to page.
@signature optionGroup() Add new option group to last select
@signature optionGroup(string) Add new option group to last container type
indicated by (string)
@return This new option group for call chaining
Add new option group to page . @signature optionGroup () Add new option group to last select @signature optionGroup ( string ) Add new option group to last container type indicated by ( string ) @return This new option group for call chaining
optionGroup(arg1) {
    const optionGroup = new strapped.OptionGroup();
    if ( typeof arg1 == 'string' && arg1.length > 0 )
      this.last(arg1).append(optionGroup);
    else
      this.last('Select').append(optionGroup);
    return optionGroup;
  }
optionGroup ( arg1 ) { const optionGroup = new strapped . OptionGroup ( ) ; if ( typeof arg1 == 'string' && arg1 . length > 0 ) this . last ( arg1 ) . append ( optionGroup ) ; else this . last ( 'Select' ) . append ( optionGroup ) ; return optionGroup ; }
Add new option group to page.
Add new option group to page .
/** Create new element */ /** Add to last container of indicated type */ /** Allow for call chaining */