0
나는 콜백 this
내부 여러 Highcharts
-buttons
,하지만 난 클릭하는 button
알 필요가 ...
Example
APIHighcharts 렌더러 버튼 ID
나는 콜백 this
내부 여러 Highcharts
-buttons
,하지만 난 클릭하는 button
알 필요가 ...
Example
APIHighcharts 렌더러 버튼 ID
가 클릭 된 버튼을 의미 렌더링했습니다. attr()
메소드를 사용하는 경우 ID를 설정할 수도 있습니다.
var custombutton = charts[i].renderer.button('button', 450, 10, function() {
// not working
alert(this.element.id);
}, null, hoverState, pressedState).attr({
id: 'button-' + i
}).add();
이것은 좋은 방법입니다 – R3tep