Documentation

/ Javascript

Method Arguments Description
ctSearchFocus table_id handle the opacity of the search string
ctSearchBlur table_id handle the opacity of the search string
ctSearchKeypress table_id handle the opacity of the search string
ctSearch table_id does the search
ctMultiSearch table_id does the advanced search
ctShowAdvancedSearch table_id Show or hides the advanced input boxes
ctItemsPerPage table_id called when item per page are changed and saves the last items per page
ctSort table_id,sort_column builds the sort string to pass to the table.

sort_column - integer corresponding to the column number

ctActions table_id called when actions are changed
ctPager table_id,page the pager should call this method to indicate wich page is to show

page - number of the page to show

ctSubmitForm

post version

table_id,sort,page, pass_total_items submit the form with all the information about the table and its components

table_id - id of the table to update
sort - string built by ctSort of type t_1a_t_2d_t
page - number of the page to show
pass_total_items - boolean to indicate if is to pass the total_items to the class

ctSubmitForm

ajax version

table_id,page, pass_total_items, reload_option, extra_vars_json submit the form with all the information about the table and its components

table_id - id of the table to update
page - number of the page to show
pass_total_items - boolean to indicate if is to pass the total_items to the class
reload_option - string to indicate which components are to reload 'form_init, search, items_per_page, table, thead, tbody, actions, pager, form_final, javascript'
extra_vars_json - json array with extra vars

onInit null called on initialization of the ctSubmitForm
onComplete null called on finalization of the ctSubmitForm