mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
808247e11d
commit
2efa085bde
4 changed files with 94 additions and 69 deletions
|
|
@ -72,7 +72,7 @@ export class Plugin {
|
|||
iconElement.setAttribute("data-menu", "true");
|
||||
iconElement.innerHTML = options.icon.startsWith("icon") ? `<svg><use xlink:href="#${options.icon}"></use></svg>` : options.icon;
|
||||
iconElement.addEventListener("click", options.callback);
|
||||
iconElement.setAttribute("data-position", options.position );
|
||||
iconElement.setAttribute("data-position", options.position);
|
||||
}
|
||||
this.topBarIcons.push(iconElement);
|
||||
return iconElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue