Sha256: de5a335e9e656710be49a6752a57403bc1b08edf4bb29a9a08e90a7f2aa7bcc6

Contents?: true

Size: 733 Bytes

Versions: 24

Compression:

Stored size: 733 Bytes

Contents

module RubyApp

  module Elements

    module Mobile

      module Dialogs
        require 'ruby_app/elements/mobile/dialogs/response_dialog'

        class AcknowledgementDialog < RubyApp::Elements::Mobile::Dialogs::ResponseDialog

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

          def initialize(title, message)
            super()

            @response = false

            @title = title
            @message = message

            @ok_link = RubyApp::Elements::Mobile::Dialogs::ResponseDialog::CloseLink.new
            @ok_link.clicked do |element, event|
              @response = true
              self.hide(event, element.options)
            end

          end

        end

      end

    end

  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
RubyApp-0.5.10 lib/ruby_app/elements/mobile/dialogs/acknowledgement_dialog.rb
RubyApp-0.5.9 lib/ruby_app/elements/mobile/dialogs/acknowledgement_dialog.rb
RubyApp-0.5.0 lib/ruby_app/elements/mobile/dialogs/acknowledgement_dialog.rb
RubyApp-0.2.8 lib/ruby_app/elements/mobile/dialogs/acknowledgement_dialog.rb