Class: IronAdmin::Dashboards::QuickLinksComponent::LinkComponent Private
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- IronAdmin::Dashboards::QuickLinksComponent::LinkComponent
- Defined in:
- app/components/iron_admin/dashboards/quick_links_component.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Individual quick link item component.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
private
Optional description.
-
#href ⇒ String
readonly
private
Link URL.
-
#icon ⇒ String?
readonly
private
Optional icon name.
-
#label ⇒ String
readonly
private
Link label.
Instance Method Summary collapse
-
#initialize(label:, href:, icon: nil, description: nil) ⇒ LinkComponent
constructor
private
A new instance of LinkComponent.
-
#theme ⇒ IronAdmin::Configuration::Theme
private
Theme configuration.
Constructor Details
#initialize(label:, href:, icon: nil, description: nil) ⇒ LinkComponent
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of LinkComponent.
48 49 50 51 52 53 |
# File 'app/components/iron_admin/dashboards/quick_links_component.rb', line 48 def initialize(label:, href:, icon: nil, description: nil) @label = label @href = href @icon = icon @description = description end |
Instance Attribute Details
#description ⇒ String? (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Optional description.
42 43 44 |
# File 'app/components/iron_admin/dashboards/quick_links_component.rb', line 42 def description @description end |
#href ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Link URL.
36 37 38 |
# File 'app/components/iron_admin/dashboards/quick_links_component.rb', line 36 def href @href end |
#icon ⇒ String? (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Optional icon name.
39 40 41 |
# File 'app/components/iron_admin/dashboards/quick_links_component.rb', line 39 def icon @icon end |
#label ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Link label.
33 34 35 |
# File 'app/components/iron_admin/dashboards/quick_links_component.rb', line 33 def label @label end |
Instance Method Details
#theme ⇒ IronAdmin::Configuration::Theme
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Theme configuration.
57 58 59 |
# File 'app/components/iron_admin/dashboards/quick_links_component.rb', line 57 def theme IronAdmin.configuration.theme end |