filter_table.js

Summary
filter_table.js
bbop.widget.filter_tableCreate a dynamic filter for removing rows from a table (where the rows are inside of a tbody).
Functions
filter_tableThe table needs to keep the row information in a tbody, not just at the top level.

bbop.widget.filter_table

Create a dynamic filter for removing rows from a table (where the rows are inside of a tbody).

The repaint_func argument takes the table id as its argument.  If a function is not specified, the default function will do nothing.

Summary
Functions
filter_tableThe table needs to keep the row information in a tbody, not just at the top level.

Functions

filter_table

bbop.widget.filter_table = function(elt_id,
table_id,
img_src,
repaint_func,
label)

The table needs to keep the row information in a tbody, not just at the top level.

Arguments

elt_idthe element to inject the filter into
table_idthe table that we will operate on
img_src[optional] img source URL for the spinner image (defaults to no spinner)
repaint_functhe repaint function to run after filtering (see above)
label[optional] the label to use for the filter

Returns

n/a

bbop.widget.filter_table = function(elt_id,
table_id,
img_src,
repaint_func,
label)
The table needs to keep the row information in a tbody, not just at the top level.
Close