Raised when the view mode of folder or upload pane is changed.
<script type="text/javascript" src="iuembed.js"> </script> <script type="text/javascript"> function ImageUploaderID_ViewChange(Pane) { //...your code... } var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500); //...params... //...other event listeners... iu.addEventListener("ViewChange", "ImageUploaderID_ViewChange"); //...other event listeners... iu.writeHtml(); </script>
A member of this enumeration which specifies a pane where the view mode is changed:
A member of the following enumeration:
String value | Integer value | Description |
---|---|---|
FolderPane | 0 |
A folder pane (which displays the current folder content). |
UploadPane | 1 |
An upload pane (which displays files from the upload list). |
When you get this value through JavaScript, an integer value will be returned.
Typically you should use this event when it is necessary synchronize HTML user interface with view mode of Image Uploader. For example, if you add dropdown list which toggles view modes, this event enables you to update dropdown state if the view mode is changed through the context menu of the Image Uploader.