Closed No5972 closed 3 years ago
The custom buttons support html.
new PhotoViewer(items, {
footerToolbar: [
...
'myCustomButton'
],
customButtons: {
myCustomButton: {
text: '<svg>...</svg>', // add your own svg icon
title: 'custom!',
click: function (context, e) {
alert('clicked the custom button!');
}
}
}
});
Tried adding the keys of the custom buttons to
icons
but nothing happened.