Module: ScrimHelper

Defined in:
app/helpers/scrim_helper.rb

Instance Method Summary collapse

Instance Method Details

#scrim_tagObject



4
5
6
7
8
9
10
# File 'app/helpers/scrim_helper.rb', line 4

def scrim_tag
  tag.div(class: "scrim", data: { controller: "scrim", scrim_target: "scrim", action: <<~ACTIONS, hidden: true })
    click->scrim#onClick
    scrim:hide@window->scrim#hide
    scrim:show@window->scrim#show
  ACTIONS
end