ExtensionPanel class
Represents a panel created by extension.
class ExtensionPanel extends ChromeObject { ExtensionPanel(); ExtensionPanel.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); /** * Appends a button to the status bar of the panel. * * [iconPath] Path to the icon of the button. The file should contain a * 64x24-pixel image composed of two 32x24 icons. The left icon is used when * the button is inactive; the right icon is displayed when the button is * pressed. * * [tooltipText] Text shown as a tooltip when user hovers the mouse over the * button. * * [disabled] Whether the button is disabled. */ Button createStatusBarButton(String iconPath, String tooltipText, bool disabled) { return _createButton(jsProxy.callMethod('createStatusBarButton', [iconPath, tooltipText, disabled])); } }
Extends
ChromeObject > ExtensionPanel
Constructors
new ExtensionPanel() #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
ExtensionPanel();
new ExtensionPanel.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
ExtensionPanel.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
Methods
Button createStatusBarButton(String iconPath, String tooltipText, bool disabled) #
Appends a button to the status bar of the panel.
iconPath Path to the icon of the button. The file should contain a 64x24-pixel image composed of two 32x24 icons. The left icon is used when the button is inactive; the right icon is displayed when the button is pressed.
tooltipText Text shown as a tooltip when user hovers the mouse over the button.
disabled Whether the button is disabled.
Button createStatusBarButton(String iconPath, String tooltipText, bool disabled) { return _createButton(jsProxy.callMethod('createStatusBarButton', [iconPath, tooltipText, disabled])); }
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();