来自非 SDK 的徽章按钮
Badged Buttons from Non-SDK
有没有人知道如何从非 sdk 插件使用 addon-sdk 的徽章按钮功能? https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/ui_button_action#Badged_buttons
如果没有技巧,我的想法是使用可能覆盖 xbl and/or 从此处列出的技术覆盖 display='xul:button'
:To anonymous element add pseudo element and cursor style and event listeners
您可以随时查看SDK源代码。这是 pertinent line
node.setAttribute('class', 'toolbarbutton-1 chromeclass-toolbar-additional badged-button');
有没有人知道如何从非 sdk 插件使用 addon-sdk 的徽章按钮功能? https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/ui_button_action#Badged_buttons
如果没有技巧,我的想法是使用可能覆盖 xbl and/or 从此处列出的技术覆盖 display='xul:button'
:To anonymous element add pseudo element and cursor style and event listeners
您可以随时查看SDK源代码。这是 pertinent line
node.setAttribute('class', 'toolbarbutton-1 chromeclass-toolbar-additional badged-button');