statgen / locuszoom

A Javascript/d3 embeddable plugin for interactively visualizing statistical genetic data from customizable sources.
https://statgen.github.io/locuszoom/
MIT License
156 stars 29 forks source link

[request] Dashboard buttons should allow consistent configuration #172

Closed abought closed 4 years ago

abought commented 5 years ago

Requested by @amkwong:

Certain LZ dashboard items do not properly respect configuration options.

For example: "Resize to data" does not obey button_html or button_title (the label is hard-coded). The most common use case is the genes layer, and "show all genes" would be a more helpful label.

We should also examine all other available buttons and verify configuration options exist as appropriate.

abought commented 4 years ago

An additional request: @psnehal notes that the download filename (locuszoom.svg) is not configurable, but should be.

https://github.com/statgen/locuszoom/blob/e707cb1c99e9e54775b4f559006bb92e138e0be6/assets/js/app/Dashboard.js#L873

abought commented 4 years ago

Added configuration of button name for genes track and download button. Also added configurable filename options.