PRODUCT
Follow

Note: To view the full list of events, see OVERVIEW: AdKit: Event Registration Methods.

adkit.onExpand(expandCB) Event

Description

Subscribes to the panel expand event.

Example

   adkit.onReady(function(){
      adkit.onExpand(function(expandInfo){
         if (expandInfo && expandInfo.panelName === 'panel_1') {
             // on expand code
         } 
      });
   });

Parameters

Name Mandatory/Optional Type Description
adkit.onExpand(expandCB) Mandatory Function Runs an event when the panel expands.

expandCB Function Parameters

Name Mandatory/Optional Type Description
expandInfo
Mandatory Object Contains Expand action information.

expandinfo Object Parameters

Name Mandatory/Optional Type Description
panelName
Mandatory string Name of the expanded panel.
Was this article helpful?
0 out of 1 found this helpful
Have more questions? Submit a request

Comments