What is ipyleaflet.Map.element() ?
Hi,
I hope this is not a silly question, but in the two Solara examples using
ipyleaflet
, it is called with ipyleaflet.Map.element(...)
, for example:
But there doesn't seem to be any element
attribute to ipyleaflet.Map
, and if I try to call it directly in Python I get an error:
So is this element
attribute Solara-related ? Or is there something simpler I don't understand ?
Thanks in advance for your help !2 Replies
Ok, sorry, replying to myself, but I just saw that
element
seems to be added by ipyvuetify.VuetifyTemplate
.the .element method is added by Reacton, the underlying React implementation in Python that Solara is using. After importing solara (or reacton), the method should be available.