You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My issue is that both the source and the replacement text for a CustomElement are defined by the property name, therefore I cannot use a CustomElement with display='side' and an arbitrary name. For example, if I want to have a CustomPDFElement.jsx that is displayed to the side that would replace the word 'source' from a Message(), this is currently impossible (AFAIK).
Describe the solution you'd like
I'd like to use another field, such as element, source, element_name on the constructor of CustomElement, and keep the behavior of the property name the same as all the built-in elements. ie, allowing this
awaitMessage(
content="Blabla, blaba.\n Click here to see the source",
elements=[
CustomElement(
element="CustomPDFElement", # any other field name you'll consider bettername="source",
props={...},
display="side"
)
],
).send()
The text was updated successfully, but these errors were encountered:
Hello,
My issue is that both the source and the replacement text for a CustomElement are defined by the property
name
, therefore I cannot use a CustomElement withdisplay='side'
and an arbitrary name. For example, if I want to have aCustomPDFElement.jsx
that is displayed to the side that would replace the word 'source' from aMessage()
, this is currently impossible (AFAIK).Describe the solution you'd like
I'd like to use another field, such as
element
,source
,element_name
on the constructor ofCustomElement
, and keep the behavior of the propertyname
the same as all the built-in elements. ie, allowing thisThe text was updated successfully, but these errors were encountered: