Module: ODDB::View::LookandfeelComponents

Included in:
Drugs::ResultList, Drugs::SequenceList, Migel::List
Defined in:
src/view/lookandfeel_components.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) reorganize_components(lookandfeel_key, default = 'th')



7
8
9
10
11
12
13
14
15
16
17
# File 'src/view/lookandfeel_components.rb', line 7

def reorganize_components(lookandfeel_key, default='th')
  @components = @lookandfeel.send(lookandfeel_key)
  @css_map = {}
  @css_head_map = {}
  @components.each { |key, val|
    if(klass = self::class::CSS_KEYMAP[val])
      @css_map.store(key, klass)
      @css_head_map.store(key, self::class::CSS_HEAD_KEYMAP[val] || default)
    end
  }
end