w2layout.get

Finds the panel and returns its object.
get(type)
type string, name of the panel

Description

The first argument type is the name of the panel. It can be one of the following:
  • top
  • left
  • main
  • right
  • preview
  • bottom
If the panel does not exists in w2layout.panels array, the method will return null. Below is a structure of the panel object: Because JavaScript passes objects by reference, changing the returned object will change the original. The better way to change panel properties is using w2layout.set() method, which will also apply changes on the screen.
Below is an example how to find panel object:

User Comments

comments powered by Disqus