Sha256: a69e9026906b3e2cf15e0ef91463ef20677960e4bb8c4f1003f19a6a7036248d
Contents?: true
Size: 1.39 KB
Versions: 8
Compression:
Stored size: 1.39 KB
Contents
# frozen_string_literal: true module QaServer class Configuration attr_writer :display_historical_graph def display_historical_graph? return @display_historical_graph unless @display_historical_graph.nil? @display_historical_graph = false end attr_writer :display_historical_datatable def display_historical_datatable? return @display_historical_datatable unless @display_historical_datatable.nil? @display_historical_datatable = true end # Additional menu items to add to the main navigation menu's set of left justified menu items # @param [Array<Hash<String,String>>] array of menu items to append with hash key = menu item label to display and hash value = URL for the menu item link # @example # [ # { label: 'New Item Label', url: 'http://new.item/one' }, # { label: '2nd New Item Label', url: 'http://new.item/two' } # ] attr_accessor :navmenu_extra_leftitems # Get the one and only instance of the navigation menu presenter used to construct the main navigation menu. # To extend, set additional navigation menu items using #navmenu_extra_leftitems def navmenu_presenter return @navmenu_presenter if @navmenu_presenter.present? @navmenu_presenter ||= QaServer::NavmenuPresenter.new @navmenu_presenter.append_leftmenu_items(navmenu_extra_leftitems) @navmenu_presenter end end end
Version data entries
8 entries across 8 versions & 1 rubygems