Netzke::Window

Features:
  • Straight-forward nesting of any other Netzke widget
  • Persistent resize and position
  • Example 1: an empty window with defaults

    Just a window that remembers its size and position

    Code:

      netzke :window
    

    Example 2: a window nesting a GridPanel

    Code:

      netzke :window_with_grid_panel, 
        :class_name => "Window", 
        :persistent_config => true, 
        :ext_config => {
          :width => 700, :height => 400
        },
        :item => {
          :class_name => "GridPanel", 
          :model => "Boss", 
          :ext_config => {
            :header => false, :border => true
          }
        }
    

    Example 3: a window nesting BossesAndClerks widget (from this tutorial)

    Just a window that remembers its size and position

    Code:

      netzke :window_with_bosses_and_clerks, 
        :class_name => "Window", 
        :persistent_config => true, 
        :ext_config => {
          :width => "70%", :height => 400
        },
        :item => {
          :class_name => "BossesAndClerks", 
          :ext_config => {
            :header => false, :border => true
          }
        }
    

    Example 4: empty window with predefined dimensions that can be reopened after closing

    Simply setting the Ext.Window's closeAction option to "hide"

    Code:

      netzke :reopenable_window, 
        :class_name => "Window", 
        :ext_config => {
          :close_action => "hide", 
          :width => 200, :height => 100
        }
    


    Back