Class: ModerntwConfirms::Configuration
- Inherits:
-
Object
- Object
- ModerntwConfirms::Configuration
- Defined in:
- lib/moderntw_confirms.rb
Instance Attribute Summary collapse
-
#backdrop_class ⇒ Object
Returns the value of attribute backdrop_class.
-
#cancel_button_class ⇒ Object
Returns the value of attribute cancel_button_class.
-
#confirm_button_class ⇒ Object
Returns the value of attribute confirm_button_class.
-
#enable_on_mobile ⇒ Object
Returns the value of attribute enable_on_mobile.
-
#modal_class ⇒ Object
Returns the value of attribute modal_class.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 |
# File 'lib/moderntw_confirms.rb', line 13 def initialize @backdrop_class = "bg-black bg-opacity-50" @modal_class = "bg-white rounded-lg shadow-xl" @confirm_button_class = "bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded" @cancel_button_class = "bg-gray-300 hover:bg-gray-400 text-gray-800 font-semibold py-2 px-4 rounded" @enable_on_mobile = false end |
Instance Attribute Details
#backdrop_class ⇒ Object
Returns the value of attribute backdrop_class.
10 11 12 |
# File 'lib/moderntw_confirms.rb', line 10 def backdrop_class @backdrop_class end |
#cancel_button_class ⇒ Object
Returns the value of attribute cancel_button_class.
10 11 12 |
# File 'lib/moderntw_confirms.rb', line 10 def @cancel_button_class end |
#confirm_button_class ⇒ Object
Returns the value of attribute confirm_button_class.
10 11 12 |
# File 'lib/moderntw_confirms.rb', line 10 def @confirm_button_class end |
#enable_on_mobile ⇒ Object
Returns the value of attribute enable_on_mobile.
10 11 12 |
# File 'lib/moderntw_confirms.rb', line 10 def enable_on_mobile @enable_on_mobile end |
#modal_class ⇒ Object
Returns the value of attribute modal_class.
10 11 12 |
# File 'lib/moderntw_confirms.rb', line 10 def modal_class @modal_class end |