I’d like to write a script for the scripting block that includes instructions on first-time usage. Folks won’t need to be reminded of this every time they run the script, so rendering it constantly is not ideal.
I’ve experimented with using the
input.buttonsAsync method without awaiting the returned promise. My thinking was that by registering a resolution handler via
.then, I could append help text at any time during the script’s execution. Unfortunately, this causes a progress indicator to be overlaid on the scripting block’s interface indefinitely.
If that indicator were not displayed, then my use case would be satisfied. Alternatively, the HTML
<details> element could be used for this purpose. That element produces a UI for toggling the visibility of content in a way that is familiar to web developers and web users. The
output.markdown currently escapes all markup, but if it could be made to allow the
<details> element, that could also satisfy the use case.