DotNetOMDGenerator icon indicating copy to clipboard operation
DotNetOMDGenerator copied to clipboard

Add search/filtering to HTML OMD

Open dotMorten opened this issue 6 years ago • 7 comments

It would be useful to be able to quickly filter the HTML diagram by name, namespace, usage etc.

dotMorten avatar Mar 20 '18 14:03 dotMorten

Hi there @dotMorten I can help if you want with this issue I will implement it with jquery, using the cdn to avoid .js files in the repo and distribution

What do you think about to add an option to create a plain html, like the current one, and a dynamic version with jquery, filtering, collapsing, etc ?

MarcosMeli avatar Nov 02 '18 03:11 MarcosMeli

@MarcosMeli One of the requirements is to have a completely encapsulated report. Referencing an external jquery would break that and including jquery just for some basic filtering seems rather overkill.

dotMorten avatar Nov 02 '18 03:11 dotMorten

I have a prototype self-contained search utility that I am happy to do as a new PR @dotMorten?

Antaris avatar Feb 12 '19 21:02 Antaris

@Antaris That sounds interesting. Do you have an example page I can look at?

Back when this was logged, the layout was even worse, so at least now you can quickly collapse by namespace, which does help a lot.

dotMorten avatar Feb 12 '19 22:02 dotMorten

@dotMorten Here is my example: https://antaris.github.io/OMD-SearchExample/

Still a little rough around the edges, but certainly a start!

Antaris avatar Feb 13 '19 14:02 Antaris

@Antaris that example is great I find that much easier to shift my focus/interest on namespace I need with the plus minus on the side to expand and collapse things of interest. One additional feedback would be perhaps a way to have a collapse All and Expand All option at the top instead of the bottom in the next iteration if approved. I note that you made a link to Github.io with one HTML could I ask how I can set up mine this way, any tips? Thanks.

PeterMTaylor avatar Feb 26 '19 20:02 PeterMTaylor

@Antaris did you want to make a PR for your search feature? Or do you mind I pull it in?

dotMorten avatar Dec 09 '21 18:12 dotMorten