Exemplo n.º 1
0
    def events(self):
        """
    Description:
    ------------

    """
        return JsNodeDom.JsDomEvents(self._src)
Exemplo n.º 2
0
    def getElement(self):
        """
    The getElement function returns the DOM node for the column.

    :return:
    """
        return JsNodeDom.JsDoms("%s.getElement()" % self.toStr())
Exemplo n.º 3
0
    def events(self):
        """
    Description:
    ------------

    """
        return JsNodeDom.JsDomEvents(component=self.component)
Exemplo n.º 4
0
    def events(self):
        """
    Description:
    ------------

    :rtype: JsNodeDom.JsDomEvents
    """
        return JsNodeDom.JsDomEvents(self.component)
Exemplo n.º 5
0
    def getElement(self):
        """
    The getElement function returns the DOM node for the row.

    Documentation
    http://tabulator.info/docs/4.4/components

    """
        return JsNodeDom.JsDoms(varName="%s.getElement()" % self.toStr())
Exemplo n.º 6
0
  def events(self):
    """
    Description:
    -----------
    Link to the events attached to a Javascript DOM object

    :rtype: JsNodeDom.JsDomEvents
    """
    return JsNodeDom.JsDomEvents(self._src)
Exemplo n.º 7
0
  def events(self) -> JsNodeDom.JsDomEvents:
    """
    Description:
    -----------
    Link to the events attached to a Javascript DOM object.

    :rtype: JsNodeDom.JsDomEvents
    """
    return JsNodeDom.JsDomEvents(self.component)
Exemplo n.º 8
0
  def document(self):
    """
    Description:
    ------------
    Interface to the DOM object on the current window.

    :return: A Python JsDoms object wrapping the DOM Js interface.
    """
    return JsNodeDom.JsDoms(self.page)
Exemplo n.º 9
0
    def getElement(self):
        """
    The getElement function returns the DOM node for the group header.

    Documentation
    http://tabulator.info/docs/3.5#component-cell

    :return:
    """
        return JsNodeDom.JsDoms(varName="%s.getElement()" % self.toStr())
Exemplo n.º 10
0
  def by_name(self):
    """
    Description:
    -----------

    :rtype: JsNodeDom.JsDomsList
    """
    if self._src.attr.get('name') is not None:
      return JsNodeDom.JsDomsList(None, "document.getElementsByName('%s')" % self._src.attr.get('name'), report=self._report)

    return self
Exemplo n.º 11
0
    def container_dom(self):
        """
    Get the div container node for the table in the API's context.

    Related Pages:

      https://datatables.net/reference/api/table().container()
    """
        return JsNodeDom.JsDoms(None,
                                report=self.src,
                                varName="%s.table().container()" % self.varId,
                                setVar=False)
Exemplo n.º 12
0
  def by_name(self) -> JsNodeDom.JsDomsList:
    """
    Description:
    -----------

    :rtype: JsNodeDom.JsDomsList
    """
    if self.component.attr.get('name') is not None:
      return JsNodeDom.JsDomsList(
        None, "document.getElementsByName('%s')" % self.component.attr.get('name'), page=self.page)

    return self
Exemplo n.º 13
0
    def container_dom(self):
        """
    Description:
    -----------
    Get the div container node for the table in the API's context.

    Related Pages:

      https://datatables.net/reference/api/table().container()
    """
        return JsNodeDom.JsDoms(component=self.component,
                                js_code="%s.table().container()" % self.varId,
                                set_var=False)