Replies: 1 comment 2 replies
-
There are few things to consider, before working on this feature. Should this console be added automatically under some conditions?
I think creating set of conditions that would activate this console automatically would be very challenging, so it is probably best to make it be activated explicitly. Should it be optionally activated part of
I think it might be best to do separate macro for just the console and later make new macro that would contain console + html output. Should there be a Play button?
Other things to consider
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our live sample system (that is, the things that are built using
EmbedLiveSample
) writers often want to show some output. They use various things:alert()
, which we don't likeconsole.log()
, which we also don't like (because it's not visible unless the user has the console open, and gets mixed in among page outputIt would be nice if live samples could have their own console attached to the output iframe, and
console.log()
calls showed up there (as we do currrently for interactive examples).Relatedly, we often want the ability to reset a live sample so it can be run again. People again hand-craft this by adding a "Reset" button that reloads the iframe. For the same reasons it would be nice if we had a built-in button to do that.
Regarding the
console.log()
thing though, a few things:console.log()
andconsole.error()
. Should this do the same?Beta Was this translation helpful? Give feedback.
All reactions