Category / Section
How is the scrollpanel rendered in the target element?
1 min read
The Scrollpanel is usually rendered in the immediate div of the target div element. Refer to the following code example.
HTML
<div id="content"> <div> <!--Scrollpanel renders in this element--> </div> </div> |
The Scrollpanel is initialized with the target property that it needs to be rendered. Here, the content is given with the attribute data-ej-target. Refer to the following code example.
HTML
<div id="scrollpanel" data-role="ejmscrollpanel" data-ej-target="content"></div> |