Class DHTMLSuite.imageSelection
Object
|
+--DHTMLSuite.imageSelection
- class
DHTMLSuite.imageSelection
Purpose of class: Tool to select objects(example: images) by dragging a rectangle around them. The objects will be made dragable
Demo: (Demo)
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
Method Summary |
void
|
addDestinationElement(elementReference)
Add single destination element
|
Object
|
addDestinationElementsByTagName(parentElementReference,tagName,className)
Add selectable elements
|
void
|
addSelectableElement(elementReference)
Add single selectable element
|
void
|
addSelectableElements(parentElementReference)
Add selectable elements
|
void
|
init()
Initializes the script
|
void
|
setCallBackFunctionOnDrop(functionName)
Specify call back function - on drop
This function will be called when elements are dropped on a destination node
Arguments to this function will be an array of the dragged elements and a reference to the destionation object.
|
void
|
setSelectionStartArea(elementReference)
Restrict where the selection may start.
|
collectionModelReference
Object collectionModelReference
destinationEls
Object destinationEls
dragStatus
Object dragStatus
layoutCSS
Object layoutCSS
objectIndex
Object objectIndex
selectableEls
Object selectableEls
selectableElsScreenProps
Object selectableElsScreenProps
selectedEls
Object selectedEls
selectionResizeInProgress
Object selectionResizeInProgress
selectionStatus
Object selectionStatus
startCoordinates
Object startCoordinates
DHTMLSuite.imageSelection
DHTMLSuite.imageSelection()
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
addDestinationElement
void addDestinationElement(elementReference)
Add single destination element
Object elementReference - Element reference, id of element or the element it's self.
addDestinationElementsByTagName
Object addDestinationElementsByTagName(parentElementReference,tagName,className)
Parameters:
Object
- parentElementReference - id of parent html element or the parent element it's self. all direct children will be dragable
String
- tagName - Which tag, example "td","li" or "a"
String
- className - optional element
Returns:
Boolean success - true if parent element was found, false otherwise.
addSelectableElement
void addSelectableElement(elementReference)
Add single selectable element
Object elementReference - id of html element or the reference to the element it's self. all direct children will be dragable
addSelectableElements
void addSelectableElements(parentElementReference)
Add selectable elements
Object parentElementReference - id of parent html element or the parent element it's self. all direct children will be dragable
init
void init()
setCallBackFunctionOnDrop
void setCallBackFunctionOnDrop(functionName)
Specify call back function - on drop
This function will be called when elements are dropped on a destination node
Arguments to this function will be an array of the dragged elements and a reference to the destionation object.
setSelectionStartArea
void setSelectionStartArea(elementReference)
Restrict where the selection may start.
Documentation generated by
JSDoc on Mon Oct 8 10:17:27 2007