render(indent) {
    this.addClass(`btn`);
    
    if ( this.active() )
      this.addClass(`active`);
    
    if ( this.block() )
      this.addClass(`btn-block`);
    
    if ( this.disabled() )
      this.addClass(`disabled`);
    
    if ( this.outline() )
      this.addClass(`btn-outline-${this.color()}`);
    else
      this.addClass(`btn-${this.color()}`);
    
    if ( this.size().length > 0 )
      this.addClass(`btn-${this.size()}`);
    
    this.prepend(new html.Input().type('radio').checked(this.active()).name(this.name()).autocomplete('off'));
    
    return super.render(indent);
  }
/**
   * Render the component.
   * @signature render(number) Render this component with (number) spaces of indentation
   * @return The rendered HTML
   */
Render the component.
@signature render(number) Render this component with (number) spaces of indentation
@return The rendered HTML
Render the component . @signature render ( number ) Render this component with ( number ) spaces of indentation @return The rendered HTML
render(indent) {
    this.addClass(`btn`);
    if ( this.active() )
      this.addClass(`active`);
    if ( this.block() )
      this.addClass(`btn-block`);
    if ( this.disabled() )
      this.addClass(`disabled`);
    if ( this.outline() )
      this.addClass(`btn-outline-${this.color()}`);
    else
      this.addClass(`btn-${this.color()}`);
    if ( this.size().length > 0 )
      this.addClass(`btn-${this.size()}`);
    this.prepend(new html.Input().type('radio').checked(this.active()).name(this.name()).autocomplete('off'));
    return super.render(indent);
  }
render ( indent ) { this . addClass ( ` ` ) ; if ( this . active ( ) ) this . addClass ( ` ` ) ; if ( this . block ( ) ) this . addClass ( ` ` ) ; if ( this . disabled ( ) ) this . addClass ( ` ` ) ; if ( this . outline ( ) ) this . addClass ( ` ${ this . color ( ) } ` ) ; else this . addClass ( ` ${ this . color ( ) } ` ) ; if ( this . size ( ) . length > 0 ) this . addClass ( ` ${ this . size ( ) } ` ) ; this . prepend ( new html . Input ( ) . type ( 'radio' ) . checked ( this . active ( ) ) . name ( this . name ( ) ) . autocomplete ( 'off' ) ) ; return super . render ( indent ) ; }
Render the component.
Render the component .