Class: ODDB::View::Drugs::ResultLimitComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/drugs/resultlimit.rb

Constant Summary

COMPONENTS =
{
  [0,0] => :export_csv,
  [0,1] => SearchForm,
  [0,2] => ResultLimitList, 
  [0,3] => View::LimitComposite,
}
LEGACY_INTERFACE =
false
CSS_MAP =
{
  [0,0] => 'right',
  [0,1] => 'right',
}

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) export_csv(model)



87
88
89
90
91
92
# File 'src/view/drugs/resultlimit.rb', line 87

def export_csv(model)
  state = @session.state
  if(state.respond_to?(:package_count) && state.package_count.to_i > 0)
    View::Drugs::DivExportCSV.new(model, @session, self)
  end
end