Releases: AndrewCRMartin/JSAV
Releases · AndrewCRMartin/JSAV
Added tooltips
Tooltips are now provided for important buttons
FASTA export, consensus sequence and more colour options
The following features have been added
- FASTA export - enabled by
fasta
option withfastaLabel
available to set the label on the button - Consensus sequence - enabled by
consensus
option - Alternative colour schemes - set the default with
colourScheme
and allow the end user to choose with theselectColour
option. The web programmer may provide a subset of these (or extend the available colours in the CSS) and specify this with thecolourChoices
option
In addition a bug has been fixed to refesh the buttons when a page is reloaded
New dotify mode and more attractive alerts and confirms
V1.3 adds the following:
- New 'dotify' mode. Replaces repeating amino acids in the alignment with dots
- Improved alerts and confirm dialogues that use JQuery UI dialog boxes rather than pure JavaScript
- Documented CSS for layout of the main display and the controls
New options are:
dotify
Boolean option to switch on the dotify modenocolour
ornocolor
Boolean to give the dots in dotify mode a white backgroundtoggleDotify
Boolean to display a checkbox to toggle dotify modetoggleNocolour
ortoggleNocolor
Boolean to display a checkbox to toggle the nocolour option in dotify mode
First feature-rich release
Fully working release. The main user entry point is:
printJSAV(divId, sequenceArray, options);
Where:
divId
is the name of a div that will be createdsequenceArray
is an array of sequence objects - these containid
andsequence
fieldsoptions
is an object describing options - see below
The options for controlling the display are:
sortable
- Should the sorting options be displayed (default: false)width
- The width of the selection slider with units (default: '400px')selectable
- Should selection checkboxes be displayed for each sequencedeletable
- Makes it possible to delete sequenceshighlight
- Array of ranges to highlight (e.g. [24,34,50,56] would highlight positions 24-34 and 50-56)submit
- URL for submitting selected sequencessubmitLabel
- Label for submit buttonaction
- Function to call using selected sequences - the function will be passed the divId and array of sequence objectsactionLabel
- Label for action button