Sha256: 30b696d8ea45826bd614d270d544f1ca34a0e8f1a570d74aaa418af08e5690a3
Contents?: true
Size: 1.02 KB
Versions: 20
Compression:
Stored size: 1.02 KB
Contents
module RubyApp module Elements module Mobile module Default module Features require 'ruby_app/elements/mobile/navigation/back_button' require 'ruby_app/elements/mobile/page' class TriggerPage < RubyApp::Elements::Mobile::Page template_path(:all, File.dirname(__FILE__)) def initialize super @back_button = RubyApp::Elements::Mobile::Navigation::BackButton.new self.shown do |element, event| event.create_trigger(self, 1) end self.hidden do |element, event| event.destroy_trigger(self) end self.triggered do |element, event| event.update_text('div.message', "Triggered at #{RubyApp::Language.locale.strftime(Time.now, RubyApp::Application.configuration.format.date.long)}") event.destroy_trigger(self) end end end end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems