feat(ui.js): Freigabe-Schaltfläche als Symbolleisten-Schaltfläche hinzugefügt.
- Share-Button auf der linken Seite der Kopfzeile entfernt
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
|
||||
static configurePSPDFKit(instance, handler) {
|
||||
const toolbarItems = UI.getToolbarItems(instance, handler)
|
||||
toolbarItems.push({type: "export-pdf"})
|
||||
toolbarItems.push({ type: "export-pdf" })
|
||||
instance.setToolbarItems(toolbarItems)
|
||||
}
|
||||
|
||||
@@ -74,7 +74,20 @@
|
||||
}
|
||||
|
||||
static getCustomItems = function (callback) {
|
||||
return []
|
||||
return [
|
||||
{
|
||||
type: 'custom',
|
||||
id: 'button-share',
|
||||
className: 'button-share',
|
||||
title: 'Teilen',
|
||||
onPress() {
|
||||
callback('SHARE')
|
||||
},
|
||||
icon: `<svg width="30" height="30" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M20 13V17.5C20 20.5577 16 20.5 12 20.5C8 20.5 4 20.5577 4 17.5V13M12 3L12 15M12 3L16 7M12 3L8 7" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>`,
|
||||
}
|
||||
]
|
||||
return [
|
||||
{
|
||||
type: 'custom',
|
||||
|
||||
Reference in New Issue
Block a user