module ApplicationHelper::Amp::Components::NotificationTagHelper

Public Instance Methods

amp_close_user_notification_button(id) click to toggle source
# File lib/generators/templates/components/helpers/notification_tag_helper.rb, line 10
def amp_close_user_notification_button(id)
    options[:on] = "tap:" + id + ".dismiss"
    content_tag("button", options)
end
amp_user_notification(id) click to toggle source
# File lib/generators/templates/components/helpers/notification_tag_helper.rb, line 4
def amp_user_notification(id)
    options[:id] = id
    options[:layout] = "nodisplay"
    content_tag("amp-user-notification", options)
end