module RubyApp module Elements module Pages module TestPages require 'rubyapp/elements/pages/test_pages/base_test_page' class InputTestPage < RubyApp::Elements::Pages::TestPages::BaseTestPage template_path(__FILE__) def initialize super require 'rubyapp/elements/dialogs/message_dialog' require 'rubyapp/elements/input' @input = RubyApp::Elements::Input.new @input.changed do |element, event| @dialog = RubyApp::Elements::Dialogs::MessageDialog.new(self.class.translate.message_title, self.class.translate.message_body(event.value)) @dialog.hidden do |element, event| @dialog = nil end event.show_dialog(@dialog) end end end end end end end