Esempio n. 1
0
  def js(self) -> JsVis.VisGraph2D:
    """
    Description:
    -----------
    Return all the Javascript functions defined in the framework.
    THis is an entry point to the full Javascript ecosystem.

    Usage::

    :return: A Javascript object

    :rtype: JsVis.VisGraph2D
    """
    if self._js is None:
      self._js = JsVis.VisGraph2D(selector="window['%s']" % self.chartId, page=self.page, component=self)
    return self._js
Esempio n. 2
0
    def js(self):
        """
    Description:
    -----------
    Javascript base function

    Return all the Javascript functions defined in the framework.
    THis is an entry point to the full Javascript ecosystem.

    :return: A Javascript object

    :rtype: JsVis.VisGraph2D
    """
        if self._js is None:
            self._js = JsVis.VisGraph2D(selector="window['%s']" % self.chartId,
                                        src=self)
        return self._js