Sha256: 84abd66ecc58cc1ea5343bbbe60365d9fd9017f1210aed0278c5be0966e9d21f

Contents?: true

Size: 1.1 KB

Versions: 121

Compression:

Stored size: 1.1 KB

Contents

module RubyApp

  module Elements

    module Mobile

      module Default

        module Features

          module Calendars
            require 'ruby_app'
            require 'ruby_app/elements/mobile/calendars/month'
            require 'ruby_app/elements/mobile/dialogs/acknowledgement_dialog'
            require 'ruby_app/elements/mobile/navigation/back_button'
            require 'ruby_app/elements/mobile/page'

            class MonthPage < RubyApp::Elements::Mobile::Page

              template_path(:all, File.dirname(__FILE__))

              def initialize
                super

                @back_button = RubyApp::Elements::Mobile::Navigation::BackButton.new

                @month = RubyApp::Elements::Mobile::Calendars::Month.new(Date.today, Date.today << 1)
                @month.changed do |element, event|
                  RubyApp::Elements::Mobile::Dialog.show(event, RubyApp::Elements::Mobile::Dialogs::AcknowledgementDialog.new('Month', "You selected day #{@month.value.day}."))
                end

              end

            end

          end

        end

      end

    end

  end

end

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.15 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.14 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.13 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.12 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.11 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.10 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.9 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.5 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.4 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.3 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.2 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.1 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.7.0 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.6.71 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.6.70 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.6.69 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.6.68 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.6.67 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb
RubyApp-0.6.66 lib/ruby_app/elements/mobile/default/features/calendars/month_page.rb