示例#1
0
文件: nxt.py 项目: Jamim/unit-docs
 def visit_nxt_tab_head(self, node):
     self.body.append('''
     <input name="{0}" type="radio" id="{1}" class="nxt_input" {2}/>
     '''.format(node.tabs_id, node.tab_id, node.tab_checked))
     self.body.append('''
     <label for="{0}" class="nxt_label">'''.format(node.tab_id))
     HTMLTranslator.visit_Text(self, node)
示例#2
0
    def visit_nxt_tab_head(self, node):
        self.body.append('''
        <input name={0} type=radio id={1} class="nojs" {2}/>'''.format(
            node.tabs_id, node.tab_id, node.checked))

        self.body.append('''
        <label for={0} id={1}><a href=#{1} onclick="nxt_tab_click(event)">'''.
                         format(node.tab_id, node.label_id))

        HTMLTranslator.visit_Text(self, node)
示例#3
0
    def visit_nxt_tab_head(self, node: Element) -> None:
        """Handles the nxt_tab_head node in an individual tab."""
        self.body.append("""
            <input name={0} type=radio id={1} class=nojs {2}/>""".format(
            node.tabs_id, node.tab_id, node.checked))

        self.body.append("""<label for={0} id={1}>
            <a href=#{1} onclick="nxt_tab_click(event)">""".format(
            node.tab_id, node.label_id))

        HTMLTranslator.visit_Text(self, node)