Sha256: 190676a9ef2f480604d4e626819719754c39237ae8738fb5349b6317c36afd66

Contents?: true

Size: 445 Bytes

Versions: 17

Compression:

Stored size: 445 Bytes

Contents

module ApplicationHelper
    module Amp::Components::NotificationTagHelper

        def amp_user_notification(id)
            options[:id] = id
            options[:layout] = "nodisplay"
            content_tag("amp-user-notification", options)
        end

        def amp_close_user_notification_button(id)
            options[:on] = "tap:" + id + ".dismiss"
            content_tag("button", options)
        end

    end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
amp-html-1.2.1 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-1.2.0 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-1.1.0 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-1.0.1 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-1.0.0 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.18 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.17 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.16 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.15 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.14 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.13 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.12 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.11 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.10 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.9 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.8 lib/generators/templates/components/helpers/notification_tag_helper.rb
amp-html-0.7.7 lib/generators/templates/components/helpers/notification_tag_helper.rb