Class: Pageflow::OutlineNavigationBar::ExpandableWidgetType

Inherits:
WidgetType
  • Object
show all
Defined in:
lib/pageflow/outline_navigation_bar/expandable_widget_type.rb

Instance Method Summary collapse

Methods inherited from WidgetType

#roles

Instance Method Details

#nameObject



4
5
6
# File 'lib/pageflow/outline_navigation_bar/expandable_widget_type.rb', line 4

def name
  'outline_navigation_bar_expandable'
end

#render(template, entry) ⇒ Object



12
13
14
# File 'lib/pageflow/outline_navigation_bar/expandable_widget_type.rb', line 12

def render(template, entry)
  super(template, entry, expandable: true)
end

#translation_keyObject



8
9
10
# File 'lib/pageflow/outline_navigation_bar/expandable_widget_type.rb', line 8

def translation_key
  'pageflow.outline_navigation_bar.expandable.widget_type_name'
end