Example #1
0
 /**
  * Outputs the link to the Google JSAPI
  *
  * @access public
  * @since  v2.3.0
  *
  * @return string
  */
 public function jsapi()
 {
     $this->jsFactory->coreJsRendered(true);
     return $this->jsFactory->getCoreJs();
 }
Example #2
0
 /**
  * Outputs the chart javascript into the page
  *
  * Pass in a string of the html elementID that you want the chart to be
  * rendered into.
  *
  * @since  v2.0.0
  * @param  string           $ei The id of an HTML element to render the chart into.
  * @throws InvalidElementId
  *
  * @return string Javscript code blocks
  */
 public function render($ei)
 {
     $jsf = new JavascriptFactory();
     return $jsf->getChartJs($this, $ei);
 }
Example #3
0
 /**
  * Outputs the chart javascript into the page
  *
  * Pass in a string of the html elementID that you want the chart to be
  * rendered into.
  *
  * @since  v2.0.0
  * @param  string           $ei The id of an HTML element to render the chart into.
  * @throws InvalidElementId
  *
  * @return string Javscript code blocks
  */
 public function render($ei)
 {
     $jsf = new JavascriptFactory();
     return $jsf->getControlWrapperJs($this, $ei);
 }