<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;Panes, make it easy to display overlays such as dialogs, popup-menus and pickers.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; A pane needs to be declared outside the normal view within a rhtml to prevent the pane from becoming visible as soon as the page is loaded.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Syntax:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
&amp;lt;% view :name_of_pane, 
               :pane =&amp;gt; :pane_type, 
               :visible =&amp;gt; false, 
               :width =&amp;gt; width_of_pane, :height =&amp;gt; height_of_pane do %&amp;gt; 
  content of pane
&amp;lt;% end  %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;where&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;:name_of_pane is the name you want to refer to (beware camelCasing: name_of_pane becomes nameOfPane in Javascript)&lt;/li&gt;
	&lt;li&gt;:pane_type is one of
	&lt;ul&gt;
		&lt;li&gt;:dialog :: for short dialogs as confirmation dialogs or error messages. Grabs the entire screen.&lt;/li&gt;
		&lt;li&gt;:panel :: for windows that require some more complicated action from the user, like a Preferences window. Grabs the entire screen.&lt;/li&gt;
		&lt;li&gt;:picker :: Pickers are semi-modal interfaces used to select some content or set some temporary options.  In the web-based UI world, this is often a better way of helping users edit some properties than floating palettes or other &amp;#8220;window-like&amp;#8221; interfaces.&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;li&gt;visible :: Normally, you should keep this to false.&lt;/li&gt;
	&lt;li&gt;width_of_pane :: width of the pane window in pixels&lt;/li&gt;
	&lt;li&gt;height_of_pane :: height of the pane window in pixels&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The dialog and panel are displayed using the entire browser window and access to the rest of the application is restricted. The picker only takes a small part of the screen (see the sample_controls example in sproutcore-samples).&lt;/p&gt;</body>
  <created-at type="datetime">2008-07-05T02:48:12-07:00</created-at>
  <id type="integer">33305</id>
  <permalink>pane_view</permalink>
  <repository-id type="integer">18944</repository-id>
  <title>Pane_view</title>
  <updated-at type="datetime">2008-09-03T05:47:34-07:00</updated-at>
  <user-id type="integer">14616</user-id>
</wiki>
