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