render(indent) {
    this.addClass('carousel-item');
    
    const image = new html.Image().src(this.src()).addClass('d-block w-100');
    
    if ( this.alt().length > 0 )
      image.alt(this.alt());
    
    this.append(image);
    
    if ( this.caption().length > 0 || this.description().length > 0 ) {
      const caption = new html.Div().addClass('carousel-caption d-none d-md-block');
      
      if ( this.caption().length > 0 )
        caption.append(new html.H5().append(new html.Text().text(this.caption())));
      
      if ( this.description().length > 0 )
        caption.append(new html.Paragraph().append(new html.Text().text(this.description())));
      
      this.append(caption);
    }
        
    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('carousel-item');
    const image = new html.Image().src(this.src()).addClass('d-block w-100');
    if ( this.alt().length > 0 )
      image.alt(this.alt());
    this.append(image);
    if ( this.caption().length > 0 || this.description().length > 0 ) {
      const caption = new html.Div().addClass('carousel-caption d-none d-md-block');
      if ( this.caption().length > 0 )
        caption.append(new html.H5().append(new html.Text().text(this.caption())));
      if ( this.description().length > 0 )
        caption.append(new html.Paragraph().append(new html.Text().text(this.description())));
      this.append(caption);
    }
    return super.render(indent);
  }
render ( indent ) { this . addClass ( 'carousel-item' ) ; const image = new html . Image ( ) . src ( this . src ( ) ) . addClass ( 'd-block w-100' ) ; if ( this . alt ( ) . length > 0 ) image . alt ( this . alt ( ) ) ; this . append ( image ) ; if ( this . caption ( ) . length > 0 || this . description ( ) . length > 0 ) { const caption = new html . Div ( ) . addClass ( 'carousel-caption d-none d-md-block' ) ; if ( this . caption ( ) . length > 0 ) caption . append ( new html . H5 ( ) . append ( new html . Text ( ) . text ( this . caption ( ) ) ) ) ; if ( this . description ( ) . length > 0 ) caption . append ( new html . Paragraph ( ) . append ( new html . Text ( ) . text ( this . description ( ) ) ) ) ; this . append ( caption ) ; } return super . render ( indent ) ; }
Render the component.
Render the component .