Sha256: 1149c51c8b050ccc9e59d91cfebe7c8382a40afa1acd0f6011fbe579ee8f49c1
Contents?: true
Size: 642 Bytes
Versions: 24
Compression:
Stored size: 642 Bytes
Contents
module RubyApp module Elements module Mobile require 'ruby_app/elements/mobile/page' class Dialog < RubyApp::Elements::Mobile::Page template_path(:all, File.dirname(__FILE__)) exclude_parent_template(:html, :js) def initialize super self.attributes.merge!('data-role' => 'dialog') end def self.show(event, dialog, options = {}) dialog.show(event, options) if block_given? dialog.hidden do |element, _event| yield _event, dialog.response end end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems