Class: DsfrComponent::ProconnectButtonComponent

Inherits:
Base
  • Object
show all
Defined in:
app/components/dsfr_component/proconnect_button_component.rb

Constant Summary

Constants inherited from Base

Base::HEADING_LEVELS, Base::SIZES

Instance Attribute Summary

Attributes inherited from Base

#html_attributes

Instance Method Summary collapse

Constructor Details

#initialize(target:, button_overrides: {}, html_attributes: {}) ⇒ ProconnectButtonComponent

Returns a new instance of ProconnectButtonComponent.

Parameters:

  • target (String)

    la cible où POST le formulaire/bouton

  • button_overrides (Hash) (defaults to: {})

    attributs pour surcharger le bouton



7
8
9
10
11
12
# File 'app/components/dsfr_component/proconnect_button_component.rb', line 7

def initialize(target:, button_overrides: {}, html_attributes: {})
  @target = target
  @button_overrides = button_overrides

  super(html_attributes: html_attributes)
end