Sha256: 1c9f3a3001118a6b657a3c80900b0177d55cb28656064fb312d8fa2a503c791b
Contents?: true
Size: 1.14 KB
Versions: 50
Compression:
Stored size: 1.14 KB
Contents
module RubyApp module Elements module Dialogs module Calendars require 'ruby_app/elements/calendars/month' require 'ruby_app/elements/dialogs/blank_dialog' require 'ruby_app/elements/link' class MonthDialog < RubyApp::Elements::Dialogs::BlankDialog template_path(:all, File.dirname(__FILE__)) def initialize(title, today = Date.today, display = nil, value = nil) super() attributes.merge!(:style => 'width: auto;') @title = title @month = RubyApp::Elements::Calendars::Month.new(today, display, value) @month.changed do |element, event| @response = event.value event.hide_dialog(self) end @today = RubyApp::Elements::Link.new @today.clicked do |element, event| @response = event.today event.hide_dialog(self) end @cancel = RubyApp::Elements::Link.new @cancel.clicked do |element, event| event.hide_dialog(self) end end end end end end end
Version data entries
50 entries across 50 versions & 1 rubygems