Sha256: 516bb3f7975246042e2fba5c20b71d242f4a8717364da18b7512bb9b875ffb8f
Contents?: true
Size: 1.12 KB
Versions: 6
Compression:
Stored size: 1.12 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(self) end @today = RubyApp::Elements::Link.new @today.clicked do |element, event| @response = Date.today event.hide(self) end @cancel = RubyApp::Elements::Link.new @cancel.clicked do |element, event| event.hide(self) end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems