Sha256: c0bb0c1b994a1215b11ea67dd42ed7bb934fa4c8c18080bcc1bd122d5242380a
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true # Menu item within a {Sidebar} class SolidusAdmin::Layout::Navigation::Item::Component < SolidusAdmin::BaseComponent with_collection_parameter :item # @param item [SolidusAdmin::MenuItem] # @param fullpath [String] the current path def initialize( item:, fullpath: "#" ) @item = item @fullpath = fullpath end def path @item.path(self) end def active? @item.active?(self, @fullpath) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_admin-0.3.2 | app/components/solidus_admin/layout/navigation/item/component.rb |