JSDoc: Class: UIHelper

# Class: UIHelper

## UIHelper()

Class to help the get and put data into html file. This also helps to create HTML tags like creating table

## Constructor

#### new UIHelper()

Source:
  - helper.js, line 5

### Methods

#### addMassDataToTable(matchedPeaks)

Add Data to the table created

##### Parameters:

Name | Type | Description
--- | --- | ---
`matchedPeaks` | Array | Contains List of Matched and unmatched peaks

Source:
  - helper.js, line 161

#### createMonoMassTable()

Function to create table

Source:
  - helper.js, line 120

#### getMassListFromUI()

getlist of Mass,Intensity and charge from UI

Source:
  - helper.js, line 52

#### getPeakListFromUI()

Function to get data of peaks and intensity from UI

Source:
  - helper.js, line 87

#### setMassDifference(precursorMass, proteinMass)

Set Mass difference on to the html

##### Parameters:

Name | Type | Description
--- | --- | ---
`precursorMass` | Float | Contains Precursor mass
`proteinMass` | Float | Contains calculated protein Mass

Source:
  - helper.js, line 35

#### setMassErrorValue(massErrorthVal)

Function to set default error value to HTML in Da units

##### Parameters:

Name | Type | Description
--- | --- | ---
`massErrorthVal` | Float | Contains Mass Error Value in Da units

Source:
  - helper.js, line 10

#### setPPMErrorValue(ppmErrorthVal)

Function to Set Default error value to HTML in ppm units

##### Parameters:

Name | Type | Description
--- | --- | ---
`ppmErrorthVal` | Float | Contains Mass Error in ppm units

Source:
  - helper.js, line 18

#### setTotalSeqMass(totalMass)

Set Total mass on to the html

##### Parameters:

Name | Type | Description
--- | --- | ---
`totalMass` | * |

Source:
  - helper.js, line 26

#### showIonPeaks()

Function to show only matched or unmatched peaks

Source:
  - helper.js, line 250

#### showPeakCounts()

Function to display matched count and un-matched count

Source:
  - helper.js, line 236

#### writeMassErrorThreshholdValueToUI(massErrorthVal, ppmErrorthVal)

Set Default Mass errors into html of both Da and ppm units

##### Parameters:

Name | Type | Description
--- | --- | ---
`massErrorthVal` | Float | Contains Mass error in Da units
`ppmErrorthVal` | Float | Contains ppm error in ppm units

Source:
  - helper.js, line 45