class Scrollytelling::Navigation::WidgetType

Public Instance Methods

name() click to toggle source
# File lib/scrollytelling/navigation/widget_type.rb, line 6
def name
  'scrollytelling_navigation'
end
render(template, entry) click to toggle source
# File lib/scrollytelling/navigation/widget_type.rb, line 14
def render(template, entry)
  template.render(
    partial: 'scrollytelling/navigation/widget',
    locals: {
      entry: entry
    }
  )
end
roles() click to toggle source
# File lib/scrollytelling/navigation/widget_type.rb, line 10
def roles
  ['navigation']
end