Skip to content

Instantly share code, notes, and snippets.

@krosenberg
Created February 26, 2014 23:22
Show Gist options
  • Save krosenberg/9240946 to your computer and use it in GitHub Desktop.
Save krosenberg/9240946 to your computer and use it in GitHub Desktop.
custom backgrid search filters
1) include <script src="{{STATIC_URL}}v2/js/backgrid-custom.js" type="text/javascript"></script> after the final backgrid js file.
2) use the following to render a filter:
var processGroupFilter = new simpleFilter({
collection: this.collection,
placeholder: "Search Process Groups",
fields: ["name", "template", "target"];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment