Class jMatrixBrowseNs.Utils
Utils
Defined in: Utils.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Utility functions for jMatrixBrowse.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
jMatrixBrowseNs.Utils.findIndexOfMin(array)
Finds the min and index of min number in the array.
|
<static> |
jMatrixBrowseNs.Utils.isOverflowing(element, container, overflow)
Check if the given cell is overflowing the container dimensions.
|
<static> |
jMatrixBrowseNs.Utils.parsePosition(str_position)
Utility function that parses a position (row,col).
|
Method Detail
<static>
{Number, Number}
jMatrixBrowseNs.Utils.findIndexOfMin(array)
Finds the min and index of min number in the array.
- Parameters:
- {Array} array
- - the array to look into.
- Returns:
- {Number} obj.min - the minimum number in the array.
- {Number} obj.minIndex - the index of minimum number in the array.
<static>
jMatrixBrowseNs.Utils.isOverflowing(element, container, overflow)
Check if the given cell is overflowing the container dimensions.
- Parameters:
- {jQuery Object} element
- - jQuery object for the element to be checked for overflow.
- {jQuery Object} container
- - The container against which to check the overflow.
- {Number} overflow
- - Type of oevrflow to check.
- Returns:
- true if there is an overflow. false otherwise.
<static>
{Object, Number, Number}
jMatrixBrowseNs.Utils.parsePosition(str_position)
Utility function that parses a position (row,col).
- Parameters:
- str_position
- Returns:
- {Object} position - Object representing the position denoted by the string.
- {Number} position.row - row index of the position.
- {Number} position.col - column index of the position.