Class: DesignSystem::Generic::ActionLinkComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- DesignSystem::Generic::ActionLinkComponent
- Defined in:
- app/components/design_system/generic/action_link_component.rb
Overview
Action links are calls-to-action signposting the start of a digital
service. Implementation differs noticeably between brands so this is
mostly a contract — both brand subclasses override call.
Direct Known Subclasses
DesignSystem::Govuk::ActionLinkComponent, Nhsuk::ActionLinkComponent
Instance Attribute Summary collapse
-
#html_options ⇒ Object
readonly
Returns the value of attribute html_options.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name = nil, options = nil, html_options = nil) ⇒ ActionLinkComponent
constructor
A new instance of ActionLinkComponent.
Methods included from Helpers::CssHelper
Methods included from BrandDerivable
Constructor Details
#initialize(name = nil, options = nil, html_options = nil) ⇒ ActionLinkComponent
Returns a new instance of ActionLinkComponent.
7 8 9 10 11 12 |
# File 'app/components/design_system/generic/action_link_component.rb', line 7 def initialize(name = nil, = nil, = nil) super() @name = name @options = || {} @html_options = || {} end |
Instance Attribute Details
#html_options ⇒ Object (readonly)
Returns the value of attribute html_options.
14 15 16 |
# File 'app/components/design_system/generic/action_link_component.rb', line 14 def @html_options end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'app/components/design_system/generic/action_link_component.rb', line 14 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
14 15 16 |
# File 'app/components/design_system/generic/action_link_component.rb', line 14 def @options end |