Class: WorldUI

WorldUI.WorldUI(world, widthopt, whereopt)

new WorldUI(world, widthopt, whereopt)

Create a UI panel for a GrWorld - this mimics the AutoUI for GrObject.

Note: this just creates controls for the world parameters. It does not create UIs for the objects in the world

This does place the panel into the DOM (onto the web page) using insertElement in the CS559 helper library. The place it is placed is controlled the where parameter. If you don't pass a place, it puts it in a "Panel Panel" at the end of the DOM (see AutoUI)

Parameters:
Name Type Attributes Default Description
world GrWorld
width number <optional>
300
where InputHelpers.WhereSpec <optional>

where to place the panel in the DOM (at the end of the page by default)

Source:

Members

chkSolo :HTMLInputElement

Type:
  • HTMLInputElement
Source: