Class: Spree::PageBlocks::Subheading
Constant Summary
collapse
- SIZE_DEFAULT =
'small'
Spree::PageBlock::BOTTOM_PADDING_DEFAULT, Spree::PageBlock::CONTAINER_ALIGNMENT_DEFAULT, Spree::PageBlock::TEXT_ALIGNMENT_DEFAULT, Spree::PageBlock::TOP_PADDING_DEFAULT, Spree::PageBlock::WIDTH_DESKTOP_DEFAULT
Instance Method Summary
collapse
Instance Method Details
#display_name ⇒ Object
12
13
14
|
# File 'app/models/spree/page_blocks/subheading.rb', line 12
def display_name
text.to_plain_text.truncate(30)
end
|
#icon_name ⇒ Object
8
9
10
|
# File 'app/models/spree/page_blocks/subheading.rb', line 8
def icon_name
'h2'
end
|