Cocos Creator
Editor.Panel
Methods
Editor.Panel.close (panelID)
panelID
string - The panel ID
Close a panel via panelID
.
Editor.Panel.dock (panelID, frameEL)
panelID
string - The panel IDframeEL
HTMLElement - The panel frame
Cache a panel frame and send editor:panel-dock
to main
Editor.Panel.dumpLayout ()
Dump the layout of the panels in current window.
Editor.Panel.newFrame (panelID, cb)
panelID
string - The panel IDcb
function
Create a simple panel frame via panelID
.
Editor.Panel.extend (proto)
proto
object
Extends a panel.
Editor.Panel.find (panelID)
panelID
string - The panel ID
Find panel frame via panelID
.
Editor.Panel.focus (panelID)
panelID
string - The panel ID
Focus panel via panelID
.
Editor.Panel.getFocusedPanel ()
Get current focused panel.
Editor.Panel.getPanelInfo (panelID)
panelID
string - The panel ID
Get panel info via panelID
.
Editor.Panel.isDirty (panelID)
panelID
string - The panel ID
Check if the specific panel is dirty.
Editor.Panel.open (panelID, argv)
panelID
string - The panel IDargv
object
Open a panel via panelID
.
Editor.Panel.popup (panelID)
panelID
string - The panel ID
Popup an exists panel via panelID
.
Editor.Panel.undock (panelID)
panelID
string - The panel ID
Remove a panel element from document but do not close it.
Properties
Editor.Panel.panels
Get panels docked in current window.