Module: ODDB::View::Substances::SubstrateList

Included in:
Substrates
Defined in:
src/view/substances/substance.rb

Constant Summary

COMPONENTS =
{
  [0,0] =>  :substrates,
}
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0,1] =>  'list',
}
DEFAULT_CLASS =
HtmlGrid::Value
DEFAULT_HEAD_CLASS =
'subheading'
SORT_HEADER =
false

Instance Method Summary (collapse)

Instance Method Details

- (Object) substrates(model, session)



25
26
27
28
29
30
# File 'src/view/substances/substance.rb', line 25

def substrates(model, session)
  txt = HtmlGrid::Text.new(:substrates, model, session, self)
  txt.label = false 
  txt.value = model.cyp_id 
  txt
end