Class: Pageflow::ProgressNavigationBar::HorizontalWidgetType

Inherits:
WidgetType
  • Object
show all
Defined in:
lib/pageflow/progress_navigation_bar/horizontal_widget_type.rb

Instance Method Summary collapse

Methods inherited from WidgetType

#roles

Instance Method Details

#nameObject



4
5
6
# File 'lib/pageflow/progress_navigation_bar/horizontal_widget_type.rb', line 4

def name
  'progress_navigation_bar_horizontal'
end

#render(template, entry) ⇒ Object



8
9
10
# File 'lib/pageflow/progress_navigation_bar/horizontal_widget_type.rb', line 8

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

#translation_keyObject



12
13
14
# File 'lib/pageflow/progress_navigation_bar/horizontal_widget_type.rb', line 12

def translation_key
  'pageflow.progress_navigation_bar.horizontal.widget_type_name'
end