class Dedalus::PatternLibrary::ApplicationSidebar
Attributes
current_entry[RW]
library_section_tabs[RW]
Public Class Methods
description()
click to toggle source
# File lib/dedalus/pattern_library/organisms/app_sidebar.rb, line 21 def self.description "A sidebar for an application" end
example_data()
click to toggle source
# File lib/dedalus/pattern_library/organisms/app_sidebar.rb, line 25 def self.example_data { library_section_tabs: [ LibrarySectionTab.example_data, LibrarySectionTab.example_data, LibrarySectionTab.example_data ] } end
Public Instance Methods
library_section_tab_rows()
click to toggle source
# File lib/dedalus/pattern_library/organisms/app_sidebar.rb, line 10 def library_section_tab_rows @tab_rows ||= self.library_section_tabs.map do |tab_data| #_molecules tab_data[:highlight] = tab_data[:name] == current_entry LibrarySectionTab.new(tab_data) end end
padding()
click to toggle source
# File lib/dedalus/pattern_library/organisms/app_sidebar.rb, line 17 def padding 0 end
show()
click to toggle source
# File lib/dedalus/pattern_library/organisms/app_sidebar.rb, line 6 def show library_section_tab_rows end