Class: Lapillus::Pager::PagerButton

Inherits:
AjaxLink show all
Defined in:
lib/lapillus/pager.rb

Overview

TODO: rewrite using closures

Direct Known Subclasses

FirstButton, LastButton, NextButton, PreviousButton

Instance Attribute Summary

Attributes inherited from Container

#components

Attributes inherited from Component

#behaviours, #identifier, #model, #property, #visible

Instance Method Summary collapse

Methods inherited from AjaxLink

#on_click, #on_click_handler=, #render_component, #render_to_element

Methods inherited from Container

#[], #add, add_component, #component, fileuploadfield, image, label, listview, panel, password_textfield, #post, #render_container, textarea, textfield

Methods inherited from Component

#add_behaviour, #behaviour, #has_behaviour?, #has_model?, #has_parent?, #on_render, #parent, #path, #render_component, #response_page=, #session, #value, #visible?, #webpage

Constructor Details

#initialize(id, pager) ⇒ PagerButton

Returns a new instance of PagerButton.



54
55
56
57
# File 'lib/lapillus/pager.rb', line 54

def initialize(id, pager)
  super(id, pager) #pager is the container to be refreshed!
  @pager = pager
end