This event fires before the writeHtml() or getHtml() method is executed.
<script type="text/javascript"> function Thumbnail1_PreRender(){ //...your code... } </script>
<aur:Thumbnail ID="Thumbnail1" runat="server"> <ClientEvents> <aur:ClientEvent EventName="PreRender" HandlerName="Thumbnail1_PreRender" /> </ClientEvents> </aur:Thumbnail>
<script type="text/javascript"> function Thumbnail1_PreRender(){ //...your code... } </script>
<?php $Thumbnail = new Thumbnail("Thumbnail1"); //...other params... $Thumbnail->getClientEvents()->setPreRender("Thumbnail1_PreRender"); //...other params... $Thumbnail->render(); ?>
function Thumbnail1_PreRender(){ //...your code... }
$au.thumbnail({ events: { //...other params... preRender: [Thumbnail1_PreRender], //...other params... } })