Exemplo n.º 1
0
    def visit_nxt_details(self, node):
        self.body.append('''
        <details>
        <summary onclick="this.addEventListener('click',
        e => e.preventDefault())"><span>{0}</span></summary>'''.format(
            node.summary_text))

        HTMLTranslator.visit_container(self, node)
Exemplo n.º 2
0
    def visit_nxt_details(self, node: Element) -> None:
        """Handles the nxt_details directive."""

        self.body.append("""<details>
            <summary onclick="this.addEventListener('click',
            e => e.preventDefault())"><span>{0}</span></summary>""".format(
            node.summary_text))

        HTMLTranslator.visit_container(self, node)
Exemplo n.º 3
0
 def visit_nxt_tabs(self, node: Element) -> None:
     """Handles the nxt_tabs node in a tab group."""
     HTMLTranslator.visit_container(self, node)
Exemplo n.º 4
0
 def visit_nxt_tab_body(self, node: Element) -> None:
     """Handles the nxt_tab_body node in an individual tab."""
     HTMLTranslator.visit_container(self, node)
Exemplo n.º 5
0
 def visit_nxt_tab_body(self, node):
     HTMLTranslator.visit_container(self, node)