Sha256: b884ff98df35b1028d114e8790f15c1a9f8c722a19a0a593058afb8e20e3e3fc

Contents?: true

Size: 583 Bytes

Versions: 22

Compression:

Stored size: 583 Bytes

Contents

module RubyApp

  module Elements

    module Mobile

      module Navigation
        require 'ruby_app/elements/mobile/navigation/navigation_button'

        class HideButton < RubyApp::Elements::Mobile::Navigation::NavigationButton

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

          def initialize
            super

            self.options.merge!(:reverse => true)

            self.clicked do |element, event|
              RubyApp::Session.document.pages.last.hide(event, self.options)
            end

          end

        end

      end

    end

  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
RubyApp-0.5.0 lib/ruby_app/elements/mobile/navigation/hide_button.rb
RubyApp-0.2.8 lib/ruby_app/elements/mobile/navigation/hide_button.rb