Skip to main content

Tools Pane

The resizeable tools pane (below the result page) provides an area for developer tools. This currently includes:

The pane can be resized by dragging the bar. Clicking a tool button toggles opening/closing the pane. Double-click toggles maximize/close.

It can be configured to have any of the following states:

  • closed (default)
  • open
  • full
  • none

e.g. https://livecodes.io/?console=open&js=console.log('hello')
opens the console and sets JavaScript code.

Demo: (console=open)

show code
import { createPlayground } from 'livecodes';

const options = {
"params": {
"console": "open",
"js": "console.log('hello')"
}
};
createPlayground('#container', options);

 

Demo: (console=full)

show code
import { createPlayground } from 'livecodes';

const options = {
"params": {
"console": "full",
"js": "console.log('hello')"
}
};
createPlayground('#container', options);

Sponsors