Hides the panel.
hide(panel, [immediate])

panel | string, name of the panel
immediate | boolean, without animation (optional)

#### Description

The first argument panel is the name of the panel. It can be one of the following:

- top
- left
- main
- right
- preview
- bottom

The panel is hidden with animation that takes approximately 2 seconds. If you want to hide the panel without animation set the second argument immediate to true.
If you have a layout defined as: $('#layout').w2layout({ name : 'layout', panels : [ { type: 'top', size: 40 }, { type: 'main', content: 'This is main panel' }, { type: 'preview', size: 200 } ] }); You can hide with animation w2ui['layout'].hide('preview'); Or without animation w2ui['layout'].hide('preview', true);