This event fires when the view mode is changed.
<script type="text/javascript"> function Uploader1_ViewChange(pane){ //...your code... } </script>
<aur:Uploader ID="Uploader1" runat="server"> <ClientEvents> <aur:ClientEvent EventName="ViewChange" HandlerName="Uploader1_ViewChange" /> </ClientEvents> </aur:Uploader>
<script type="text/javascript"> function Uploader1_ViewChange(pane){ //...your code... } </script>
<?php $Uploader = new Uploader("Uploader1"); //...other params... $Uploader->getClientEvents()->setViewChange("Uploader1_ViewChange"); //...other params... $Uploader->render(); ?>
function Uploader1_ViewChange(pane){ //...your code... }
$au.uploader({ events: { //...other params... viewChange: [Uploader1_ViewChange], //...other params... } })
Type: String
A member of this enumeration which specifies a pane where the view mode is changed:
Value | Description |
---|---|
FolderPane | The folder pane. |
UploadPane | The upload pane. |
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 drop-down list which toggles view modes, this event enables you to update drop-down state if the view mode is changed through the context menu of the Image Uploader.