Class: Polaris::BannerComponent::SecondaryAction
- Inherits:
-
Component
- Object
- ViewComponent::Base
- Component
- Polaris::BannerComponent::SecondaryAction
- Defined in:
- app/components/polaris/banner_component.rb
Constant Summary
Constants included from ViewHelper
ViewHelper::POLARIS_HELPERS, ViewHelper::POLARIS_TEXT_STYLES
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**system_arguments) ⇒ SecondaryAction
constructor
A new instance of SecondaryAction.
Methods included from ViewHelper
#polaris_body_styles, #polaris_icon_source, #polaris_inversed_colors
Methods included from OptionHelper
#append_option, #prepend_option
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean
Methods included from ClassNameHelper
Constructor Details
#initialize(**system_arguments) ⇒ SecondaryAction
Returns a new instance of SecondaryAction.
76 77 78 |
# File 'app/components/polaris/banner_component.rb', line 76 def initialize(**system_arguments) @system_arguments = system_arguments end |
Instance Method Details
#call ⇒ Object
80 81 82 83 84 85 86 |
# File 'app/components/polaris/banner_component.rb', line 80 def call render(BaseButton.new(classes: "Polaris-Banner__SecondaryAction", **@system_arguments)) do tag.span(class: "Polaris-Banner__Text") do content end end end |