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)
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)
def visit_nxt_tabs(self, node: Element) -> None: """Handles the nxt_tabs node in a tab group.""" HTMLTranslator.visit_container(self, node)
def visit_nxt_tab_body(self, node: Element) -> None: """Handles the nxt_tab_body node in an individual tab.""" HTMLTranslator.visit_container(self, node)
def visit_nxt_tab_body(self, node): HTMLTranslator.visit_container(self, node)