Sha256: f19042504079713e77f6400ec6593f35f9b27478c814f5d1518cca113b7374b5
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 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_dialog(event, RubyApp::Elements::Dialogs::MessageDialog.new(self.translate.message_dialog.message.title, self.translate.message_dialog.message.message(@input.value || '(nil)'))) end @duration_input = RubyApp::Elements::Inputs::DurationInput.new @duration_input.changed do |element, event| RubyApp::Session.show_dialog(event, RubyApp::Elements::Dialogs::MessageDialog.new(self.translate.message_dialog.message.title, self.translate.message_dialog.message.message(@duration_input.duration || '(nil)'))) end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
RubyApp-0.0.55 | lib/ruby_app/elements/pages/test_pages/input_test_page.rb |
RubyApp-0.0.54 | lib/ruby_app/elements/pages/test_pages/input_test_page.rb |