Boosey
Posts: 0
Joined: Sat May 24, 2014 1:29 pm

Expand/Collapse Event not firing

I have a collapsibleSet widget and have bound simple actions to its expand and collapse events. When the expand or collapse event occurs I set the text in a label to Expand or Collapse, respectively.

However, it seems as though the events are never firing. The text in the label never changes.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Expand/Collapse Event not firing

Hi Boosey.

Please add following code to "page show" event.

precode

var onCollapsibleexpand = function(){
console.log("Expand");

Code: Select all

 //Here is a code to make logic when collapsible set expanded 

};
//Note: "mobilecollapsibleset_212" - is a collapsible set name. So it should be changed by yuor one.
Appery("mobilecollapsibleset_212").on("collapsibleexpand", onCollapsibleexpand)

var onCollapsiblecollapse = function(){
console.log("Collapse");

Code: Select all

 //Here is a code to make logic when collapsible set collapsed 

};
//Note: "mobilecollapsibleset_212" - is a collapsible set name. So it should be changed by yuor one.
Appery("mobilecollapsibleset_212").on("collapsiblecollapse", onCollapsiblecollapse)

/code/pre

Regards.

Boosey
Posts: 0
Joined: Sat May 24, 2014 1:29 pm

Expand/Collapse Event not firing

Thanks. That worked.

Return to “Issues”