render(indent) {
    this.addClass(`btn`);
    
    if ( this.active() )
      this.addClass(`active`);
    
    if ( this.block() )
      this.addClass(`btn-block`);
    
    if ( this.collapses().length > 0 ) {
      this.attr('data-toggle', 'collapse');
      this.href(this.collapses());
    }
    
    if ( this.disabled() )
      this.addClass(`disabled`);
    
    if ( this.outline() )
      this.addClass(`btn-outline-${this.color()}`);
    else if ( this.color().length > 0 )
      this.addClass(`btn-${this.color()}`);
    
    if ( this.size().length > 0 )
      this.addClass(`btn-${this.size()}`);
    
    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.collapses().length > 0 ) {
      this.attr('data-toggle', 'collapse');
      this.href(this.collapses());
    }
    if ( this.disabled() )
      this.addClass(`disabled`);
    if ( this.outline() )
      this.addClass(`btn-outline-${this.color()}`);
    else if ( this.color().length > 0 )
      this.addClass(`btn-${this.color()}`);
    if ( this.size().length > 0 )
      this.addClass(`btn-${this.size()}`);
    return super.render(indent);
  }
render ( indent ) { this . addClass ( ` ` ) ; if ( this . active ( ) ) this . addClass ( ` ` ) ; if ( this . block ( ) ) this . addClass ( ` ` ) ; if ( this . collapses ( ) . length > 0 ) { this . attr ( 'data-toggle' , 'collapse' ) ; this . href ( this . collapses ( ) ) ; } if ( this . disabled ( ) ) this . addClass ( ` ` ) ; if ( this . outline ( ) ) this . addClass ( ` ${ this . color ( ) } ` ) ; else if ( this . color ( ) . length > 0 ) this . addClass ( ` ${ this . color ( ) } ` ) ; if ( this . size ( ) . length > 0 ) this . addClass ( ` ${ this . size ( ) } ` ) ; return super . render ( indent ) ; }
Render the component.
Render the component .