Sha256: c257523ab3b4273a669fc36e3cf4a2b2c19f232f38670abac8824cb66848a461

Contents?: true

Size: 1.46 KB

Versions: 28

Compression:

Stored size: 1.46 KB

Contents

module RubyApp

  module Elements

    module Pages

      module TestPages
        require 'ruby_app/elements/dialogs/message_dialog'
        require 'ruby_app/elements/markdown'
        require 'ruby_app/elements/input'
        require 'ruby_app/elements/inputs/duration_input'
        require 'ruby_app/elements/pages/blank_page'
        require 'ruby_app/session'

        class InputTestPage < RubyApp::Elements::Pages::BlankPage

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

          def initialize
            super

            @markdown = RubyApp::Elements::Markdown.new

            @input = RubyApp::Elements::Input.new
            @input.changed do |element, event|
              RubyApp::Session.show(event, RubyApp::Elements::Dialogs::MessageDialog.new(self.translate.message_dialog.message.title,
                                                                                         self.translate.message_dialog.message.message(@input.value)))
            end

            @duration_input = RubyApp::Elements::Inputs::DurationInput.new
            @duration_input.changed do |element, event|
              RubyApp::Session.show(event, RubyApp::Elements::Dialogs::MessageDialog.new(self.translate.message_dialog.message.title,
                                                                                         self.translate.message_dialog.message.message(@duration_input.duration)))
            end

          end

        end

      end

    end

  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
RubyApp-0.0.46 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.45 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.44 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.43 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.42 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.41 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.30 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.29 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.28 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.27 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.26 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.25 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.24 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.23 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.22 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.21 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.20 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.19 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.18 lib/ruby_app/elements/pages/test_pages/input_test_page.rb
RubyApp-0.0.17 lib/ruby_app/elements/pages/test_pages/input_test_page.rb