extjsextjs6extjs6-classic

ExtJS 6 chart legend event listeners don't work


Here is the fiddle: https://fiddle.sencha.com/#fiddle/1b7d

Main idea is that legend code below does not work. Event listeners don't work.

legend: {
  docked: 'bottom',
     listeners: {
        selectionchange: function(me, selected) {
            alert("1");
        },
        select: function( me, record, index, eOpts ) {
            alert("2");
        },
        activate: function( me ) {
            alert("3");
        },
        show: function( me ) {
            alert("4");
        }
    },
},

Solution

  • Not sure about the four you mentioned, I guess they are leftovers from the class hierarchy, and are not fired from xtype legend. Or it's a bug, you could ask in the sencha forum.

    I can assure you that the boxready and the itemclick event are fired correctly.