src/core/popover.js
/**
   * Shows the popover at the given position
   * @param {Position} position
   */
Shows the popover at the given position
@param {Position} position
Shows the popover at the given position @param { Position } position
show(position) {
    this.reset();
    this.titleNode.innerHTML = this.options.title;
    this.descriptionNode.innerHTML = this.options.description;
    this.renderButtons();
    switch (this.options.position) {
      case 'left':
        this.positionOnLeft(position);
        break;
      case 'right':
        this.positionOnRight(position);
        break;
      case 'top':
        this.positionOnTop(position);
        break;
      case 'bottom':
        this.positionOnBottom(position);
        break;
      case 'auto':
      default:
        this.autoPosition(position);
        break;
    }
  }
show ( position ) { this . reset ( ) ; this . titleNode . innerHTML = this . options . title ; this . descriptionNode . innerHTML = this . options . description ; this . renderButtons ( ) ; switch ( this . options . position ) { case 'left' : this . positionOnLeft ( position ) ; break ; case 'right' : this . positionOnRight ( position ) ; break ; case 'top' : this . positionOnTop ( position ) ; break ; case 'bottom' : this . positionOnBottom ( position ) ; break ; case 'auto' : default : this . autoPosition ( position ) ; break ; } }
Shows the popover at the given position
 @param {Position} position
Shows the popover at the given position @param { Position } position
// Set the title and descriptions // Position the popover around the given position