|
12 | 12 | from wireviz.DataClasses import Connector, Cable |
13 | 13 | from wireviz.wv_colors import get_color_hex |
14 | 14 | from wireviz.wv_gv_html import nested_html_table, html_colorbar, html_image, \ |
15 | | - html_caption, remove_links, html_line_breaks, bom_bubble |
| 15 | + html_caption, remove_links, html_line_breaks, bom_bubble, nested_html_table_dict |
16 | 16 | from wireviz.wv_bom import manufacturer_info_field, \ |
17 | 17 | get_additional_component_table, bom_list, generate_bom |
18 | 18 | from wireviz.wv_html import generate_html_output |
@@ -122,11 +122,13 @@ def create_graph(self) -> Graph: |
122 | 122 | connector.color, html_colorbar(connector.color)], |
123 | 123 | [f'P/N: {remove_links(connector.pn)}' if connector.pn else None, |
124 | 124 | html_line_breaks(manufacturer_info_field(connector.manufacturer, connector.mpn))] if self.show_part_numbers else None, |
| 125 | + nested_html_table_dict(connector.additional_parameters), |
125 | 126 | '<!-- connector table -->' if connector.style != 'simple' else None, |
126 | 127 | [html_image(connector.image)], |
127 | 128 | [html_caption(connector.image)]] |
128 | 129 | rows.append(get_additional_component_table(self, connector)) |
129 | 130 | rows.append([html_line_breaks(connector.notes)]) |
| 131 | + |
130 | 132 | html.extend(nested_html_table(rows)) |
131 | 133 |
|
132 | 134 | if connector.style != 'simple': |
@@ -208,6 +210,7 @@ def create_graph(self) -> Graph: |
208 | 210 | html_line_breaks(manufacturer_info_field( |
209 | 211 | cable.manufacturer if not isinstance(cable.manufacturer, list) else None, |
210 | 212 | cable.mpn if not isinstance(cable.mpn, list) else None))], |
| 213 | + nested_html_table_dict(cable.additional_parameters), |
211 | 214 | '<!-- wire table -->', |
212 | 215 | [html_image(cable.image)], |
213 | 216 | [html_caption(cable.image)]] |
|
0 commit comments