cancel
Showing results for 
Search instead for 
Did you mean: 

Fire Event When Scroll Is Moving In ScrollContainer

Former Member
0 Kudos

Hello,

I have created a control, CustomScrollContainer extendeding from ScrollContainer as I would like to make some customizations to m.ScrollContainer.

I want to fire an event from my CustomScrollContainer when scroll is moved by the user.

How do I know when this happens? Couldn't find any hooks in m.ScrollContainer.

Please help.

An example will be appreciated.

Thanks

Amjad

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos

Hi Amjad

Here is an example

-D

Answers (1)

Answers (1)

koolspy_ultimate
Active Contributor
0 Kudos

Hi Amjad,

Did you try attachEvent

Regards,

Madhumahesh.

Former Member
0 Kudos

Can you give an example Madhu?

How would I attach a Scroll event to my customScrollcontainer?

koolspy_ultimate
Active Contributor
0 Kudos

Hi,

Please ignore my earlier post.

just an example:

var scr = new sap.m.ScrollContainer({});

scr.fireEvent(sEventId, mParameters, bAllowPreventDefault, bEnableEventBubbling);

check the fireEvent for additional info.

Regards,

Madhumahesh.