Explorar el Código

add custom_attrs to pc.element (#1131)

Sheldon hace 2 años
padre
commit
5fd428e92f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      pynecone/el/element.py

+ 1 - 0
pynecone/el/element.py

@@ -27,6 +27,7 @@ class Element(Component):
                 id=self.id,
                 style=self.style,
                 class_name=self.class_name,
+                **self.custom_attrs,
             ).set(
                 contents=str(tag.contents),
                 children=[child.render() for child in self.children],