|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--DHTMLSuite.resize
Resize widget
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0 , 1.0
Field Summary | |
Object |
classNameOfResizeHandles
|
Object |
elementToResizeIsAbsolutePositioned
|
Object |
initElementSize
|
Object |
layoutCSS
|
Object |
maxHeight
|
Object |
maxWidth
|
Object |
minHeight
|
Object |
minWidth
|
Object |
mouseStartPos
|
Object |
objectIndex
|
Object |
resizeHandleelativePath
|
Object |
resizeHandlerOffsetInPixels
|
Object |
resizeHandles
|
Object |
resizeTimer
|
Constructor Summary | |
DHTMLSuite.resize
(propertyArray)
|
Method Summary | |
void
|
addResizeHandle(resizeHandle,direction)
Specify a sub element of the reized element which acts as a resize handle |
Object
|
getReferenceToResizedElement()
Returns a reference to the resizable element |
void
|
init()
Initializes the widget. |
void
|
setCallbackOnAfterResize(functionName)
Specify name of call back function which will be executed when restarts ends(i.e. |
void
|
setCallbackOnBeforeResize(functionName)
Specify name of call back function which will be executed before restarts starts |
void
|
setCallbackOnDuringResize(functionName)
Specify name of call back function which will be executed during resize |
void
|
setElementRoResize(elementReference)
Specify which element you want to resize |
void
|
setIsResizeElementAbsolutePositioned(absolutePositioned)
Specify if resized element is absolute positioned. |
void
|
setLayoutCss(cssFileName)
Specify new css file for the resize widget, default = resize.css |
void
|
setMaxHeightInPixels(pixels)
Specify maximum height |
void
|
setMaxWidthInPixels(pixels)
Specify maximum width |
void
|
setMinHeightInPixels(pixels)
Specify minimum width |
void
|
setMinWidthInPixels(pixels)
Specify minimum width |
void
|
setResizeHandlerOffsetInPixels(offsetInPx)
Specify offset in pixels for automatically created resize handles. |
Field Detail |
Object classNameOfResizeHandles
Object elementToResizeIsAbsolutePositioned
Object initElementSize
Object layoutCSS
Object maxHeight
Object maxWidth
Object minHeight
Object minWidth
Object mouseStartPos
Object objectIndex
Object resizeHandleelativePath
Object resizeHandlerOffsetInPixels
Object resizeHandles
Object resizeTimer
Constructor Detail |
DHTMLSuite.resize(propertyArray)
Array
- - Associative array of resize properties(possible keys: minWidth,maxWidth,minHeight,maxHeight,preserveRatio,callbackOnBeforeResize,callbackOnAfterResize,callbackOnDuringResize,resizeInWhichDirections)
Method Detail |
void addResizeHandle(resizeHandle,direction)
Object
- resizeHandle - id or direct reference to HTML element
String
- direction - Resize direction(possible values "all", "south","west","east","north","northwest","northheast","southwest","southeast")
Object getReferenceToResizedElement()
void init()
void setCallbackOnAfterResize(functionName)
String
- functionName - Only the name of the function to execute, example. "myCallbackFunction", a reference to this resize object will be sent as only argument to this function.
void setCallbackOnBeforeResize(functionName)
String
- functionName - Only the name of the function to execute, example. "myCallbackFunction", a reference to this resize object will be sent as only argument to this function.
void setCallbackOnDuringResize(functionName)
String
- functionName - Only the name of the function to execute, example. "myCallbackFunction", a reference to this resize object will be sent as only argument to this function.
void setElementRoResize(elementReference)
Object
- elementReference - id or direct reference to HTML element(this element should be either absolute or relative positioned)
void setIsResizeElementAbsolutePositioned(absolutePositioned)
Boolean
- absolutePositioned - Is the resizable element absolute positioned on your page ?
void setLayoutCss(cssFileName)
void setMaxHeightInPixels(pixels)
Integer
- pixels - maximum height of resized element in pixels. i.e. restrict the resize widget from making it smaller.
void setMaxWidthInPixels(pixels)
Integer
- pixels - Maximum width of resized element in pixels. i.e. restrict the resize widget from making it larger.
void setMinHeightInPixels(pixels)
Integer
- pixels - minimum width of resized element in pixels. i.e. restrict the resize widget from making it smaller.
void setMinWidthInPixels(pixels)
Integer
- pixels - Minimum width of resized element in pixels. i.e. restrict the resize widget from making it smaller.
void setResizeHandlerOffsetInPixels(offsetInPx)
Integer
- offsetInPx - Offset in pixels
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |