class Spree::BackendConfiguration

Attributes

menu_items[W]

Items can be added to the menu by using code like the following:

Spree::Backend::Config.configure do |config|

config.menu_items << config.class::MenuItem.new(
  [:section],
  'icon-name',
  url: 'https://solidus.io/'
)

end

@!attribute menu_items

@return [Array<Spree::BackendConfiguration::MenuItem>]

Positioning can be determined by setting the position attribute to an Integer or nil. Menu Items will be rendered with smaller lower values first and higher values last. A position value of nil will cause the menu item to be rendered at the end of the list.

Public Instance Methods

menu_items() click to toggle source

Return the menu items which should be drawn in the menu

@api public @return [Array<Spree::BackendConfiguration::MenuItem>]