Runs the result page after any required compilation of code. This method triggers the compilation and execution of all code in the playground (markup, style, and script editors) and displays the output in the result page.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/live-codes/livecodes/llms.txt
Use this file to discover all available pages before exploring further.
Signature
Parameters
None.Returns
A promise that resolves when the code has been executed and the result page is displayed.
Usage
Basic Usage
Run After Code Changes
Notes
- This method is particularly useful when
autoupdateis set tofalsein the configuration. - The method waits for any necessary compilation to complete before displaying results.
- If the playground is not yet loaded, calling this method will load it first.
Related Methods
setConfig()- Load new configuration before runninggetCode()- Get the current code and compiled outputwatch()- Watch for code changes and other events