Render the specified target
You can render the contents for the Rotator by specifying the particular target element. The target element should maintain the HTML structure as mentioned in the following code example.
The data-ej-targetid attribute is used to define the Id of the target element where you can specify the content to render in the control. The data-ej-targetheight and data-ej-targetwidth attributes are used to specify the Rotator height and width respectively on initialization. Refer the following code example.
<div id="page">
</div>
<div id="rotatordefault" data-role="ejmrotator" data-ej-targetid="rotatorcontentdefault">
</div>
<div id="rotatorcontentdefault">
<div>
<div class="photo photo1">
</div>
</div>
<div>
<div class="photo photo2">
</div>
</div>
<div>
<div class="photo photo3">
</div>
</div>
<div>
<div class="photo photo4">
</div>
</div>
<div>
<div class="photo photo5">
</div>
</div>
</div>
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page