Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements: Not showing as docs describe it #82

Closed
bachi76 opened this issue Dec 7, 2023 · 3 comments
Closed

Elements: Not showing as docs describe it #82

bachi76 opened this issue Dec 7, 2023 · 3 comments

Comments

@bachi76
Copy link

bachi76 commented Dec 7, 2023

I couldn't make the text (and image) elements to display as is described in the docs on /api-reference/elements/text

The only way that seems to work is with message context and display = "inline". All the other described versions (outside of message context, and other display types, didn't show the elements at all. What am I doing wrong? Or is the doc outdated?

Being able to display text or image permanently, out of a message context, would be extremely helpful.

Thanks.

@willydouhard
Copy link
Contributor

To display an element permanently, display="inline" is the right way. If you want do use display="side", the name of the element has to be referenced in the content of the message. That name will become an hyperlink opening the sidebar.

@bachi76
Copy link
Author

bachi76 commented Dec 8, 2023

Ah, thanks a lot @willydouhard - works beautifully now.

One more question: How can I update the content of an existing text? I tried to send it again with new text, but that didn't work. Use case: I imagine a text doc in the side bar that the bot and human work on and thus is changing permanently.

And a suggestion: A parameter to show the side bar immediately (not via link) would be great.

Edit: Update via .remove() and .send() works.

@willydouhard
Copy link
Contributor

Yes, remove and send is the way. For the auto open in the side bar this will come!

@bachi76 bachi76 closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants