highcharts - How to add a class to the element class in EXTJs -
i'm using chart render piechart app. have:
ext.query('.highcharts-container') that gives me array of highchart-containers , i'd add custom class every 1 of them add custom css. tried:
ext.query('.highcharts-container').addcls("test") but says "addcls" not function. below img of how looks:
, accord answers below, tried adding in seperate app, , works, reason in case constant shows undefined.no clue whts going on?
ext.query return array of matching components. if you're sure there 1 item in array, can use:
ext.componentquery.query('.highcharts-container')[0].addcls("test") otherwise, should loop through items , add class each component.
ext.componentquery.query('.highcharts-container').foreach(function (item) { item.addcls("test"); });
Comments
Post a Comment