PRODUCT
Follow

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

adkit.onCollapse(collapseCB) Event

Description

Subscribes to the panel collapse event.

Example

  adkit.onReady(function(){
       adkit.onCollapse(function(collapseInfo){
           if (collapseInfo && collapseInfo.panelName === 'panel_1') {
                // on collapse code
           } 
       });
  });

Parameters

Name Mandatory/Optional Type Description
collapseCB
Mandatory Function Runs when the panel collapses.

collapseCB Function Parameters

Name Mandatory/Optional Type Description
collapseInfo
Optional Function Contains collapse action information.

collapseinfo Object Parameters

Name Mandatory/Optional Type Description
panelName
Mandatory string Name of the collapsed panel.

Parameters

Name Mandatory/Optional Type Description
panelName Mandatory String

Name of the panel you want to hide.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments