Class: ModerntwConfirms::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/moderntw_confirms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_classObject

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_classObject

Returns the value of attribute cancel_button_class.



10
11
12
# File 'lib/moderntw_confirms.rb', line 10

def cancel_button_class
  @cancel_button_class
end

#confirm_button_classObject

Returns the value of attribute confirm_button_class.



10
11
12
# File 'lib/moderntw_confirms.rb', line 10

def confirm_button_class
  @confirm_button_class
end

#enable_on_mobileObject

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

Returns the value of attribute modal_class.



10
11
12
# File 'lib/moderntw_confirms.rb', line 10

def modal_class
  @modal_class
end