Classes
Methods
buildHTML(outerElementId) → {undefined}
Insert HTML for TryItOut inside an HTML element with provided ID.
Parameters:
| Name | Type | Description |
|---|---|---|
outerElementId |
string | the HTML element ID for the element to contain TryItOut |
- Source:
Returns:
- Type
- undefined
changeClassForElementsWithClasses(withClasses, oldClass, newClass) → {undefined}
Provided an array of element class names,
remove oldClass and add newClass to each element
Parameters:
| Name | Type | Description |
|---|---|---|
withClasses |
Array | array of classes of HTML elements to change |
oldClass |
string | css class name to be removed |
newClass |
string | css class name to be added |
- Source:
Returns:
- Type
- undefined
hideErrorDiv() → {undefined}
Hide error div in this TryItOut
- Source:
Returns:
;
- Type
- undefined
loadHTML() → {undefined}
Internal method to load object references to TryItOut DOM elements
- Source:
Returns:
- Type
- undefined
onClickChangeTheme() → {undefined}
Toggle theme of all editors on page between default and alternative theme
- Source:
Returns:
- Type
- undefined
onClickClear() → {undefined}
Clear contents of input area, output area, and hide the error div in this TryItOut
- Source:
Returns:
;
- Type
- undefined
onClickRotate() → {undefined}
Toggle orientation of all editors and preview windows on page between horizontal and vertical
- Source:
Returns:
- Type
- undefined
onClickRun() → {undefined}
Run the code in the onscreen input textarea through Egg.
Display errors in error div.
- Source:
Returns:
- Type
- undefined
placeCode(code) → {undefined}
Set default code in TryItOut editor
Parameters:
| Name | Type | Description |
|---|---|---|
code |
string | Egg code |
- Source:
Returns:
- Type
- undefined