This is a complete re-write of the plugin. There is no upgrade path from V2 to V3 at present as the options and the way the code is written are inherently different. Please check out the full documentation for V3 found in the docs folder or by viewing it online here.
NOTE
As of version 3.1.x there are some backwards compatibility issues if you have done customizations like those seen in the custom dropdown filter example using the 3.0.x versions. The examples have been updated with the changes however the issues are listed below.
- The
FooTable.Filtering#filter()method no longer accepts any arguments and is used purely to apply all filters found in theFooTable.Filtering#filtersarray. - Due to #1 above to apply a new search filter it must now be done using the
FooTable.Filtering#addFilter(name, query, columns)method using a name of "search". - The internal, core and custom component arrays that existed within the
FooTable.Table#componentsobject have been removed. All components are now loaded into a single array. - When registering a component you now only need to use
FooTable.components.register()method instead of having to decide betweenFooTable.components.register(),FooTable.components.core.register()andFooTable.components.internal.register()due to #3 above.
- Added a new state component that handles the page number, sorted column and any filters applied across sessions.
- Added in the ability to toggle the visibility of the various editing component buttons.
- Added in a new "view" button to the editing component.
- Added in
FooTable.Rows#expand()andFooTable.Rows#collapse()methods to toggle all visible rows. - Added in a new
FooTable.getRow()utility method to retrieve the currentFooTable.Rowobject given aTRelement or any of its' children. - Fixed an issue when reinitializing the plugin by doing some additional cleanup in the destroy methods for columns, rows and sorting.
- Fixed an issue with filtering not applying correctly when filters were supplied through the options.
- Fixed base
FooTable.Componentmethod signatures. - Updated the
FooTable.Row#val()method to merge supplied data instead of replacing it entirely. - Updated the
FooTable.getFnPointer()method to handle dot notation names. - Updated the requirement checks for columns so having at least one
data-breakpointsattribute is no longer required. - Updated the
FooTable.Filtering#filter()method to only apply all filters in theFooTable.Filtering#filters. - Removed the
FooTable.Table#applyFilter()andFooTable.Table#removeFilter()methods. - Removed the
FooTable.components.coreandFooTable.components.internalobjects.
- Added in a basic expandAll option for rows.
- Added in a
FooTable.Rows#load()method to make supplying the table with new data much easier. - Added in a redraw parameter to the
FooTable.Rows#add(),FooTable.Rows#update()andFooTable.Rows#delete()methods to allow for better bulk operations. - Added in new ignoreCase option for the filtering component.
- Fixed issue with breakpoints being calculated incorrectly on mobile devices.
- Fixed issue with the sorting component preventing the default action of click events from taking place. (think checkboxes not checking when in header)
- Fixed issue where the events
expand.ft.rowandcollapse.ft.rowwere not supplying the row as a parameter.
- Added the ability to filter for empty values.
- Fixed an issue where there were duplicate components being loaded when using the
FooTable.init()constructor. - Fixed an issue where the
FooTable.NumberColumn#thousandSeparatorwas being initialized with an incorrect default value. - Fixed an issue where the old instance id class was being left on the table when reinitializing FooTable on the same table over and over again.
- Added in
ready.ft.tableandpostinit.ft.tableevents. - Added new
FooTable.Table#_construct()method to allow for easier overriding. - Added in three new methods for the sorting component;
FooTable.Sorting#toggleAllowed(state),FooTable.Sorting#hasChanged()andFooTable.Sorting#reset(). - Fixed an issue where the sort direction for a column marked as sorted was defaulting to DESC instead of ASC.
- Fixed an issue where the
indexOrRowparameter for theFooTable.Row#delete()andFooTable.Row#update()methods was being ignored.
- Added a new editing component that provides the framework to create an editable table.
- Added in a new option
toggleSelectorto allow filtering of row click events. - Added in a priority to component loading.
- Added in new events
expand.ft.rowandcollapse.ft.row. - Fixed an issue with the paging component where if the total number of rows was less than the page size breakpoints would not fire.
- Fixed an issue with the paging component during resizing/drawing when there was only a single page.
- Fixed an issue with bubbled errors and deferreds in
FooTable.Table. - Fixed the sorting components icon padding on
THelements being overridden by Bootstrap. - Fixed breakpoint values being off by 1 pixel.