Class: ODDB::View::Substances::SelectSubstanceComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/substances/selectsubstance.rb

Constant Summary

COMPONENTS =
{
  [0,0,0] =>  :source_name,
  [0,0,1] =>  'merge_with',
  [0,1] =>  :targets,
}
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0] =>  'th',
}
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) source_name(model)



43
44
45
# File 'src/view/substances/selectsubstance.rb', line 43

def source_name(model)
  model.source.name
end

- (Object) targets(model)



46
47
48
# File 'src/view/substances/selectsubstance.rb', line 46

def targets(model)
  TargetList.new(model.targets, @session, self)
end