Method: Bulma::ButtonComponent#initialize
- Defined in:
- app/components/bulma/button_component.rb
#initialize(value = nil, type: "submit", size: nil, color: nil, light: false, fullwidth: false, loading: false) ⇒ ButtonComponent
Returns a new instance of ButtonComponent.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/components/bulma/button_component.rb', line 7 def initialize( value = nil, type: "submit", size: nil, color: nil, light: false, fullwidth: false, loading: false ) @value = value @type = type @size = size @color = color @light = light @fullwidth = fullwidth @loading = loading end |