Class: Model

ko/ui/panel~ Model


Model()

The model for the row UI element, this is what model:ko/ui/panel.create returns

Properties:
Name Type Description
name string

The node name of the element

element Element

A XUL panel

Extends

Methods


<static> close()

Close the popup. This does not delete the panel, it just hides it.


<static> open(args,)

Show the panel.

Example
args =
   {
       anchor : dom object to anchor to,
       position:   "before_start, before_end, after_start, after_end, start_before, start_after, end_before, end_after, overlap, and after_pointer",
       x : number,
       y : number,
       isContextMenu : bool,
       attributes : bool,
       triggerEvent : event)
   }
   ref: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Method/openPopup
Parameters:
Name Type Description
args, object

options object can contain the following: Defaults to opening in the middle of the Komodo main window


<static> remove()

Remove the panel