javascript - Event in extended sap.m.Table not triggering -


i trying extend sap.m.table control following this article working fine. control rendering , displaying content correctly.

but event not fired. missing? have hook on different event? thought can override onitempress event of sap.m.table control , enhance way want, since don't need original functionality.

any pointers solution appreciated.

before trying extend control tried hook on onitempress event using .addeventdelegat(), did not work either.

my extended control:

sap.m.table.extend("collapsablegrouptable",{     metadata:{        events:{           "groupcollapse" : {}        }     },      onitempress : function(evt) {         this.firegroupcollapse();     },     renderer : {} }); 

my instance of control:

var otable = new collapsablegrouptable({             columns : [                 <some columns>             ],             items : {                 path: "<somepath>",                 sorter : <somesorter>,                 factory : <somefactoryfunction>             },             groupcollapse : function(){console.log("group collapse event fired");},         }); 

edit: clarification override of event not working idependent of item type. tried active inactive.

onitempress external event.

you should check function in sap.m.table triggering event , override function trigger event.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -