Skip to content

Commit f3d0498

Browse files
authored
Merge pull request #558 from abhijitmamarde/master
added option to change exportButtonName
2 parents b17c265 + a8e5d57 commit f3d0498

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/jquery.orgchart.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
'visibleLevel': 999,
2828
'chartClass': '',
2929
'exportButton': false,
30+
'exportButtonName': 'Export',
3031
'exportFilename': 'OrgChart',
3132
'exportFileextension': 'png',
3233
'parentNodeSymbol': 'oci-leader',
@@ -127,7 +128,7 @@
127128
var that = this;
128129
var $exportBtn = $('<button>', {
129130
'class': 'oc-export-btn' + (this.options.chartClass !== '' ? ' ' + this.options.chartClass : ''),
130-
'text': 'Export',
131+
'text': this.options.exportButtonName,
131132
'click': function(e) {
132133
e.preventDefault();
133134
that.export();

0 commit comments

Comments
 (0)