Class: Netzke::Window::Base
- Inherits:
-
Base
- Object
- Base
- Netzke::Window::Base
- Defined in:
- lib/netzke/window/base.rb
Overview
Ext.window.Window-based component. With persistence
option set to true
, it will remember it's size, position, and maximized state.
Example:
class MyWindow < Netke::Window::Base
def configure
super
c.width = 800
c.height = 600
c.items = [:users] # nesting the `users` component declared below
end
component :users
end
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#configure_client(c) ⇒ Object
22 23 24 25 26 |
# File 'lib/netzke/window/base.rb', line 22 def configure_client(c) super [:x, :y, :width, :height].each { |p| c[p] = state[p].to_i if state[p] } c.maximized = state[:maximized] if state[:maximized] end |