Pylons / pyramid_debugtoolbar

Pyramid debug toolbar
https://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/
Other
95 stars 82 forks source link

Enable searching on the toolbar tables #111

Open sontek opened 11 years ago

sontek commented 11 years ago

When looking at the routes or logging panels, sometimes it would be useful to have a fuzzy text search to find something specific. You can always use your browser's ctrl+f but sometimes its nice if the data is filtered out visually.

brodul commented 11 years ago

Should I take a JS lib to do that. Or do you think we should do this using AJAX?

mmerickel commented 9 years ago

This should be done in JS.

jvanasco commented 7 years ago

FWIW, I do this in the dogpile addon:

Code: https://github.com/jvanasco/pyramid_debugtoolbar_dogpile/blob/master/pyramid_debugtoolbar_dogpile/panels/templates/pyramid_dogpile.dbtmako#L70-L87

Image: https://camo.githubusercontent.com/96abfa2a8302510f171f81272b9bcee10a43d92f/68747470733a2f2f7261772e6769746875622e636f6d2f6a76616e6173636f2f707972616d69645f6465627567746f6f6c6261725f646f6770696c652f6d61737465722f73637265656e73686f742e706e67

It's not terribly hard to do and could be made more generic with a mako function, but at the least you would need to decide which columns are filter-able for the intended tables.

stevepiercy commented 6 years ago

@jvanasco does your addon use datatables? I'm using it for another project, with a Bootstrap 4 style integration. Bootstrap 3 integration is also available for the version currently supported in the debugtoolbar. It's all JavaScript and can load data from JSON or whatever.