PETStock
- class modules.js.Classes.PETStock()
- modules.js.Classes.PETStock.PETStock
constructor
- modules.js.Classes.PETStock.getOrderedSelectionArray()
Return the array of selected items in the order they were selected
- Returns
- modules.js.Classes.PETStock.selectItem(t)
callback to select an item from the Stock component, overridden to allow the component the keep the order of selected items
- Arguments
t – id of the item to be selected
- modules.js.Classes.PETStock.setOrderedSelection(orderedSelection)
Function to set whether the component should keep track of the order of the selected items
- Arguments
orderedSelection (
boolean()
) –
- modules.js.Classes.PETStock.setOverlap(horizontalOverlap, verticalOverlap, useVerticalOverlapAsOffset)
Function to set the overlap (both horizontal and vertical) and the use of the vertical overlap as a real overlap
- Arguments
horizontalOverlap (
float()
) –verticalOverlap (
float()
) –useVerticalOverlapAsOffset (
boolean()
) –
- modules.js.Classes.PETStock.unselectItem(t)
Callback function to unselect an item from the Stock component, and remove it from the ordered list if necessary
- Arguments
t – id of the item to be unselected
- modules.js.Classes.PETStock.updateDisplay(t)
Function that update the display of the Stock component. THe function has been modified from the original component to allow for a real vertical overlap
- Arguments
t – id of the HTML element from where to slide this component