Class: Decidim::RedesignedButtonCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::RedesignedButtonCell
- Includes:
- IconHelper, ResourceHelper, SanitizeHelper, LayoutHelper
- Defined in:
- decidim-core/app/cells/decidim/redesigned_button_cell.rb
Overview
This cell renders a generic redesigned button.
Direct Known Subclasses
CommentsButtonCell, EndorsersListButtonCell, RedesignedFollowButtonCell, ReportButtonCell, ShareButtonCell
Constant Summary collapse
- DEFAULT_ATTRIBUTES =
{ button_classes: "button button__sm button__transparent-secondary", text_classes: nil, icon_classes: nil, method: nil, remote: false, html_options: {} }.freeze
Constants included from IconHelper
IconHelper::DEFAULT_RESOURCE_TYPE_ICONS
Instance Method Summary collapse
Methods included from IconHelper
#component_icon, #manifest_icon, #resource_icon, #resource_type_icon, #resource_type_icon_key
Instance Method Details
#button_attributes ⇒ Object
24 25 26 |
# File 'decidim-core/app/cells/decidim/redesigned_button_cell.rb', line 24 def @button_attributes ||= model || {} end |
#show ⇒ Object
20 21 22 |
# File 'decidim-core/app/cells/decidim/redesigned_button_cell.rb', line 20 def show render end |