Global

Navigation

Hiding private elements (toggle)
Showing extended elements (toggle)

Summary

Properties

<constant> CLASS :String
Name of this class
<constant> VERSION :String
AutoFill version

Methods

fnSettings() → {object}
Retreieve the settings object from an instance
_fnFillerDisplay(e)
Display the drag handle on mouse over cell
_fnFillerDragMove(e)
Mouse move event handler for during a move. See if we want to update the display based on the new cursor position
_fnFillerDragStart(e)
Mouse down event handler for starting a drag
_fnFillerFinish(e)
Mouse release handler - end the drag and take action to update the cells with the needed values
_fnFillerPosition(nTd)
Position the filler icon over a cell
_fnInit(oDT, oConfig)
Initialisation
_fnPrep(sStr) → {Object}
Chunk a string such that it can be filled in by the stepper function
_fnReadCell(nTd) → {String}
Read informaiton from a cell, possibly using live DOM elements if suitable
_fnStep(nTd, oPrepped, iDiff, bIncrement, sToken) → {String}
Render a string for it's position in the table after the drag (incrememt numbers)
_fnTargetCoords(nTd) → {Object}
Find out the coordinates of a given TD cell in a table
_fnUpdateBorder(nStart, nEnd)
Display the border around one or more cells (from start to end)
_fnWriteCell(nTd, sVal, bLast)
Write informaiton to a cell, possibly using live DOM elements if suitable

Details

Properties

<constant> CLASS :String

Name of this class

<constant> VERSION :String

AutoFill version

Methods

fnSettings() → {object}

Retreieve the settings object from an instance

Returns:

AutoFill settings object

_fnFillerDisplay(e)

Display the drag handle on mouse over cell

Parameters:
Name Type Attributes Default Description
1
eObjectEvent object
Returns:

void

_fnFillerDragMove(e)

Mouse move event handler for during a move. See if we want to update the display based on the new cursor position

Parameters:
Name Type Attributes Default Description
1
eObjectEvent object
Returns:

void

_fnFillerDragStart(e)

Mouse down event handler for starting a drag

Parameters:
Name Type Attributes Default Description
1
eObjectEvent object
Returns:

void

_fnFillerFinish(e)

Mouse release handler - end the drag and take action to update the cells with the needed values

Parameters:
Name Type Attributes Default Description
1
eObjectEvent object
Returns:

void

_fnFillerPosition(nTd)

Position the filler icon over a cell

Parameters:
Name Type Attributes Default Description
1
nTdNodeCell to position filler icon over
Returns:

void

_fnInit(oDT, oConfig)

Initialisation

Parameters:
Name Type Attributes Default Description
1
oDTobjectDataTables settings object
2
oConfigobjectConfiguration object for AutoFill
Returns:

void

_fnPrep(sStr) → {Object}

Chunk a string such that it can be filled in by the stepper function

Parameters:
Name Type Attributes Default Description
1
sStrStringString to prep
Returns:

with parameters, iStart, sStr and sPostFix

_fnReadCell(nTd) → {String}

Read informaiton from a cell, possibly using live DOM elements if suitable

Parameters:
Name Type Attributes Default Description
1
nTdNodeCell to read
Returns:

Read value

_fnStep(nTd, oPrepped, iDiff, bIncrement, sToken) → {String}

Render a string for it's position in the table after the drag (incrememt numbers)

Parameters:
Name Type Attributes Default Description
1
nTdNodeCell being written to
2
oPreppedObjectPrepared object for the stepper (from _fnPrep)
3
iDiffIntStep difference
4
bIncrementBooleanIncrement (true) or decriment (false)
5
sTokenStringToken to replace
Returns:

Rendered information

_fnTargetCoords(nTd) → {Object}

Find out the coordinates of a given TD cell in a table

Parameters:
Name Type Attributes Default Description
1
nTdNodeundefined
Returns:

x and y properties, for the position of the cell in the tables DOM

_fnUpdateBorder(nStart, nEnd)

Display the border around one or more cells (from start to end)

Parameters:
Name Type Attributes Default Description
1
nStartNodeStarting cell
2
nEndNodeEnding cell
Returns:

void

_fnWriteCell(nTd, sVal, bLast)

Write informaiton to a cell, possibly using live DOM elements if suitable

Parameters:
Name Type Attributes Default Description
1
nTdNodeCell to write
2
sValStringValue to write
3
bLastBooleanFlag to show if this is that last update
Returns:

void