Additional customizations to dialog boxes #494

Closed
cmdcolin opened this Issue Jul 11, 2014 · 3 comments

Comments

Projects
None yet
1 participant
@cmdcolin
Contributor

cmdcolin commented Jul 11, 2014

The ability to customize dialog boxes was introduced in jbrowse 1.11.3. There are a couple of use cases that still remain that could be added

  • Ability to access feature information inside a callback. Currently only the data item that is being customized is available to the callback. This can be useful if you wanted to for example access to ID when you are customizing the name field (to add a link out for example).
  • Ability to remove specific fields entirely. This has been requested several times on the mailing list. Also add ability to add a new fields.

@cmdcolin cmdcolin added the feature label Jul 11, 2014

@cmdcolin

This comment has been minimized.

Show comment
Hide comment
@cmdcolin

cmdcolin Jul 11, 2014

Contributor

"RE: the ability to access feature information inside a callback": This can also help you customize top level features instead of "subfeature" attributes by calling feature.get('type') in your callback

Also, here's a reference of current status of this feature http://gmod.org/wiki/JBrowse_Configuration_Guide#Customizing_parts_of_the_.27View_details.27_Pop-ups_with_callbacks

Contributor

cmdcolin commented Jul 11, 2014

"RE: the ability to access feature information inside a callback": This can also help you customize top level features instead of "subfeature" attributes by calling feature.get('type') in your callback

Also, here's a reference of current status of this feature http://gmod.org/wiki/JBrowse_Configuration_Guide#Customizing_parts_of_the_.27View_details.27_Pop-ups_with_callbacks

@cmdcolin

This comment has been minimized.

Show comment
Hide comment
@cmdcolin

cmdcolin Jul 21, 2014

Contributor

Added: allow user to access the feature object from within the callback functions
Added: allow user to remove a field entirely by returning null from fmtDetailField callback
Added: allow user to make mouse over/yellow style box using fmtDetailDescription
Added: disable application of callback functions to the "About track" panel
Added: customizable fmtMetaField/fmtMetaValue/fmtMetaDescription callbacks for the "About track" panel

Contributor

cmdcolin commented Jul 21, 2014

Added: allow user to access the feature object from within the callback functions
Added: allow user to remove a field entirely by returning null from fmtDetailField callback
Added: allow user to make mouse over/yellow style box using fmtDetailDescription
Added: disable application of callback functions to the "About track" panel
Added: customizable fmtMetaField/fmtMetaValue/fmtMetaDescription callbacks for the "About track" panel

cmdcolin added a commit that referenced this issue Aug 1, 2014

Add example usage of XYPlot onClick, add examples of custom about pag…
…e and view details dialogs, and example of multiline callback for VCF. See #489 and #494 for reference

cmdcolin added a commit that referenced this issue Aug 26, 2014

Correct DetailsMixin to support customization of the About track and …
…the name field of the View details popups. See #494
@cmdcolin

This comment has been minimized.

Show comment
Hide comment
@cmdcolin

cmdcolin Sep 5, 2014

Contributor

The changes so far have been documented here http://gmod.org/wiki/JBrowse_Configuration_Guide#Additional_customizations_to_the_pop-up_boxes
Unless there are specific requests from users I will close this issue

Contributor

cmdcolin commented Sep 5, 2014

The changes so far have been documented here http://gmod.org/wiki/JBrowse_Configuration_Guide#Additional_customizations_to_the_pop-up_boxes
Unless there are specific requests from users I will close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment