Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SectionStack click and custom function

    SmartClient_v90p_2013-10-13

    Google Chrome Version 30.0.1599.101 m

    I use SectionStack.
    When I click on section, I need to run other function.
    For doing this I use Section property <click: "myFunction()">.
    My function runs properly, but unfortunately I lost standart behavior of the Section.
    How can I use standart behavior of Section whith running myFunction() after clicking Section?
    Thankyou.

    My code:
    isc.SectionStack.create({
    ID:"leftSideLayout",
    width:280,
    showResizeBar:true,
    visibilityMode:"multiple",
    animateSections:true,
    sections:[
    {name: "section1", title:"section1", autoShow:true, items:[]},
    {name: "section2", title:"section2", autoShow:true, items:[]},
    {name: "Information", title:"Information", autoShow:true, items:[InfoCanvas], click:"clickMenuInfo()"}
    ]
    });

    function clickMenuInfo() {
    isc.say('Hello world!');
    };
    Last edited by ivan.tkach; 2 Nov 2013, 13:45.

    #2
    Call Super() to avoid destroying the default behavior of click (or any other method).

    Comment

    Working...
    X