Class: Spree::PageBlock
Direct Known Subclasses
Spree::PageBlocks::Buttons, Spree::PageBlocks::Heading, Spree::PageBlocks::Image, Spree::PageBlocks::Link, Spree::PageBlocks::MegaNav, Spree::PageBlocks::MegaNavWithSubcategories, Spree::PageBlocks::Metafields, Spree::PageBlocks::Nav, Spree::PageBlocks::NewsletterForm, Spree::PageBlocks::Products::BuyButtons, Spree::PageBlocks::Products::QuantitySelector, Spree::PageBlocks::Products::VariantPicker, Spree::PageBlocks::Subheading, Spree::PageBlocks::Text
Constant Summary
collapse
- TEXT_ALIGNMENT_DEFAULT =
'left'
- CONTAINER_ALIGNMENT_DEFAULT =
'left'
- SIZE_DEFAULT =
'medium'
- WIDTH_DESKTOP_DEFAULT =
100
- TOP_PADDING_DEFAULT =
0
- BOTTOM_PADDING_DEFAULT =
0
Instance Method Summary
collapse
Instance Method Details
#display_name ⇒ Object
55
56
57
|
# File 'app/models/spree/page_block.rb', line 55
def display_name
name
end
|
59
60
61
|
# File 'app/models/spree/page_block.rb', line 59
def form_partial_name
type.demodulize.underscore
end
|
#icon_name ⇒ Object
63
64
65
|
# File 'app/models/spree/page_block.rb', line 63
def icon_name
'fullscreen'
end
|