Search This Blog

Thursday, July 9, 2015

Running Client Script in a Display Template After Rendering is Complete in SharePoint 2013


Syntax:
 
<!–#_AddPostRenderCallback(ctx, function()
{             
     //code to execute
});
_#–>


Real time:
    <!--#_
AddPostRenderCallback(ctx, function()
{             
   
   
               $("[rel^='lightbox']").prettyPhoto();
          
});
_#-->

No comments:

Post a Comment

Validating to select in sequencial order using angular

    < input type = "checkbox" (change) = "handleSelectTaskItem($event, taskItem)" [checked] = " taskItem . i...