From 1600297dff571dcd453da7f1e35db2c5ab744e92 Mon Sep 17 00:00:00 2001 From: Paul Zepernick Date: Fri, 16 Jan 2015 15:57:16 -0500 Subject: [PATCH] Added docs --- .../columnSearchField/dataTables.colsearch.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 features/columnSearchField/dataTables.colsearch.md diff --git a/features/columnSearchField/dataTables.colsearch.md b/features/columnSearchField/dataTables.colsearch.md new file mode 100644 index 0000000..e40e380 --- /dev/null +++ b/features/columnSearchField/dataTables.colsearch.md @@ -0,0 +1,26 @@ +This is a plugin I wrote that will add inputs / selects to the grids header or footer for searching. It will automatically fire the search for the columns on the keyup for inputs and change for selects. + +There is a delay on the keyup on the input that utilizes the `searchDelay` option on the DataTable. The default is 500ms if it has not been specified. The search fields are automatically omitted for a column if `columns.searchable` is FALSE. + +Here are the plugin options: +* `placement` - String: "head' or "foot" (default "head") +* `select` - Array of objects: define which columns should search via dropdown. Object properties specified below. + + * `name` - int or string: column index, `columns.data` as a string, `columns.name` + * `options` - Array of Strings or a function `function(select)`: The function will be responsible for appending the `