button_templates.js | |
bbop. | Template generators for various button “templates” that can be fed into the search_pane widget. |
Functions | |
field_download | Generate the template for a simple download button. |
restmark | Generate the template for a simple bookmark button with pop-up. |
bookmark | Generate the template for a simple bookmark (for search) button with pop-up. |
send_fields_to_galaxy | Generate the template for a button that sends fields to a Galaxy instance. |
open_facet_matrix | Generate the template for a button that sends the user to the facet_matrix page with the current manager state and two facets. |
flexible_download | Generate the template for a button that gives the user a DnD and reorderable selector for how they want their tab-delimited downloads. |
flexible_download | Generate the template for a button that gives the user a DnD and reorderable selector for how they want their tab-delimited downloads. |
Template generators for various button “templates” that can be fed into the search_pane widget.
These templates foten have functions that manipulate the environment outside, such as window.*, etc. Be aware and look at the code carefully--there is a reason they’re in the widgets/display area.
Note: this is a collection of methods, not a constructor/object.
Functions | |
field_download | Generate the template for a simple download button. |
restmark | Generate the template for a simple bookmark button with pop-up. |
bookmark | Generate the template for a simple bookmark (for search) button with pop-up. |
send_fields_to_galaxy | Generate the template for a button that sends fields to a Galaxy instance. |
open_facet_matrix | Generate the template for a button that sends the user to the facet_matrix page with the current manager state and two facets. |
flexible_download | Generate the template for a button that gives the user a DnD and reorderable selector for how they want their tab-delimited downloads. |
flexible_download | Generate the template for a button that gives the user a DnD and reorderable selector for how they want their tab-delimited downloads. |
bbop.widget.display.button_templates.field_download = function( label, count, fields )
Generate the template for a simple download button.
label | the text to use for the hover |
count | the number of items to download |
fields | the field to download |
hash form of jQuery button template for consumption by search_pane.
bbop.widget.display.button_templates.restmark = function( linker )
Generate the template for a simple bookmark button with pop-up.
linker | the linker to be used for this bookmarking |
hash form of jQuery button template for consumption by search_pane.
bbop.widget.display.button_templates.bookmark = function( linker )
Generate the template for a simple bookmark (for search) button with pop-up.
linker | the linker to be used for this bookmarking |
hash form of jQuery button template for consumption by search_pane.
bbop.widget.display.button_templates.send_fields_to_galaxy = function( label, count, fields, galaxy )
Generate the template for a button that sends fields to a Galaxy instance.
label | the text to use for the hover |
count | the number of items to download |
fields | the field to download |
galaxy | the url to the galaxy instance we’re sending to |
hash form of jQuery button template for consumption by search_pane.
bbop.widget.display.button_templates.open_facet_matrix = function( gconf, instance_data )
Generate the template for a button that sends the user to the facet_matrix page with the current manager state and two facets.
TODO: The facet_matrix link should be handled by the linker, not manually using the app_base info.
gconf | a copy of the <golr_conf> for the currrent setup |
instance_data | a copy of an amigo.data.server() for app_base info |
hash form of jQuery button template for consumption by search_pane.
bbop.widget.display.button_templates.flexible_download = function( label, count, start_fields, personality, gconf )
Generate the template for a button that gives the user a DnD and reorderable selector for how they want their tab-delimited downloads.
label | the text to use for the hover |
count | the number of items to be downloadable |
start_fields | ordered list of the initially selected fields |
personality | the personality (id) that we want to work with |
gconf | a copy of the <golr_conf> for the currrent setup |
hash form of jQuery button template for consumption by search_pane.
bbop.widget.display.button_templates.flexible_download_b3 = function( label, count, start_fields, personality, gconf )
Generate the template for a button that gives the user a DnD and reorderable selector for how they want their tab-delimited downloads.
label | the text to use for the hover |
count | the number of items to be downloadable |
start_fields | ordered list of the initially selected fields |
personality | the personality (id) that we want to work with |
gconf | a copy of the <golr_conf> for the currrent setup |
hash form of jQuery button template for consumption by other widgets
Generate the template for a simple download button.
bbop.widget.display.button_templates.field_download = function( label, count, fields )
Generate the template for a simple bookmark button with pop-up.
bbop.widget.display.button_templates.restmark = function( linker )
Generate the template for a simple bookmark (for search) button with pop-up.
bbop.widget.display.button_templates.bookmark = function( linker )
Generate the template for a button that sends fields to a Galaxy instance.
bbop.widget.display.button_templates.send_fields_to_galaxy = function( label, count, fields, galaxy )
Generate the template for a button that sends the user to the facet_matrix page with the current manager state and two facets.
bbop.widget.display.button_templates.open_facet_matrix = function( gconf, instance_data )
Generate the template for a button that gives the user a DnD and reorderable selector for how they want their tab-delimited downloads.
bbop.widget.display.button_templates.flexible_download = function( label, count, start_fields, personality, gconf )