MCPcopy
hub / github.com/python-visualization/folium / ElementAddToElement

Class ElementAddToElement

folium/elements.py:145–159  ·  view source on GitHub ↗

Abstract class to add an element to another element.

Source from the content-addressed store, hash-verified

143
144
145class ElementAddToElement(MacroElement):
146 """Abstract class to add an element to another element."""
147
148 _template = Template(
149 """
150 {% macro script(this, kwargs) %}
151 {{ this.element_name }}.addTo({{ this.element_parent_name }});
152 {% endmacro %}
153 """
154 )
155
156 def __init__(self, element_name: str, element_parent_name: str):
157 super().__init__()
158 self.element_name = element_name
159 self.element_parent_name = element_parent_name
160
161
162class IncludeStatement(MacroElement):

Callers 1

renderMethod · 0.90

Calls 1

TemplateClass · 0.90

Tested by

no test coverage detected