Saturday, June 1, 2024
 Popular · Latest · Hot · Upcoming
34
rated 0 times [  41] [ 7]  / answers: 1 / hits: 29612  / 12 Years ago, sun, april 29, 2012, 12:00:00

I want to hide default buttons (Export & Print) in highchart export options.



you can have demo at http://jsfiddle.net/fXHB5/3496/ in this link there are 3 buttons
1. Custom Button
2. Export button
3. print Button.



In this case I want to show only first button and hide Export button & print Button


More From » jquery

 Answers
13

you can access each button preference with something like this:



exporting: {
buttons: {
printButton: {
symbol: 'circle'
},
exportButton: {
enabled: false
}
}
}


an expandable example with your custom button would be:



exporting: {
buttons: {
printButton: {
enabled: false
},
exportButton: {
enabled: false
},
custom: {
symbol: 'diamond',
x: -62,
symbolFill: '#B5C9DF',
hoverSymbolFill: '#779ABF',
_titleKey: 'printButtonTitle',
onclick: function () {
alert('click!')
}
}
}
}

[#85897] Friday, April 27, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ansleyk

Total Points: 42
Total Questions: 100
Total Answers: 83

Location: Angola
Member since Wed, Apr 13, 2022
2 Years ago
;