Class: ODDB::View::Drugs::OffsetPager

Inherits:
Pager show all
Defined in:
src/view/drugs/sequences.rb

Constant Summary

COMPONENTS =
{
  [0,0] =>  :offset_link,
}
CSS_CLASS =
'pager'

Constants inherited from Pager

BACKGROUND_SUFFIX, COMPONENTS, CSS_CLASS, CSS_HEAD_MAP, CSS_MAP, OFFSET_STEP, SORT_DEFAULT, SORT_HEADER

Constants inherited from HtmlGrid::List

BACKGROUND_SUFFIX

Instance Method Summary (collapse)

Methods inherited from Pager

#init, #initialize, #page_link, #to_html

Constructor Details

This class inherits a constructor from ODDB::View::Pager

Instance Method Details



23
24
25
# File 'src/view/drugs/sequences.rb', line 23

def compose_footer(offset)
  offset
end

- (Object) compose_header(offset)



20
21
22
# File 'src/view/drugs/sequences.rb', line 20

def compose_header(offset)
  offset
end


26
27
28
# File 'src/view/drugs/sequences.rb', line 26

def offset_link(model, session)
  page_link(:content, model)
end

- (Object) resolve_suffix(model, bg_flag = false)



29
30
31
# File 'src/view/drugs/sequences.rb', line 29

def resolve_suffix(model, bg_flag=false)
  model == @page ? ' migel-group' : ''
end