Class: Protos::Modal::Trigger

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/modal/trigger.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_templateObject

DOCS: A trigger is a button that opens a modal



8
9
10
# File 'lib/protos/modal/trigger.rb', line 8

def view_template(&)
  button(**attrs, &)
end