Class: ODDB::View::Substances::ResultComposite

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

Constant Summary

CSS_CLASS =
'composite'
COLSPAN_MAP =
{
  [0,1] =>  2,
}
COMPONENTS =
{
  [0,0]   => :title_found,
  [1,0]   => View::SearchForm,
  [0,1]   => View::Substances::ResultList,
}
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) title_found(model)



24
25
26
27
# File 'src/view/substances/result.rb', line 24

def title_found(model)
  query = @session.persistent_user_input(:search_query)
  @lookandfeel.lookup(:title_found, query, @session.state.object_count)
end