View orphan combobox.
A pergola.ComboBox instance can be an orphan object or a property of an owner object, typically a panel. To embed a combobox in a panel (or in a panel's tab) you set the
layout property, as in the code example below, or you can append it manually. The geometrical properties
height can be overridden.
pergola.ListItem instances are automatically generated with event listeners, based on the array of strings assigned to the list property. Processing is handled by both the list items (click: selection; double click: activation) and the panel's OK button if the combobox is a component.
Contents can be updated dynamically using the update() prototype method.
The example code below also shows the use of the pergola.notification, a preemptive (option) dialog which can be used like a system alert that doesn't stop execution of the script.