Dart Documentationchrome.devtoolsElementsPanel

ElementsPanel class

Represents the Elements panel.

class ElementsPanel extends ChromeObject {
 ElementsPanel();
 ElementsPanel.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * Creates a pane within panel's sidebar.
  * 
  * [title] Text that is displayed in sidebar caption.
  * 
  * Returns:
  * An ExtensionSidebarPane object for created sidebar pane.
  */
 Future<ExtensionSidebarPane> createSidebarPane(String title) {
   var completer = new ChromeCompleter<ExtensionSidebarPane>.oneArg(_createExtensionSidebarPane);
   jsProxy.callMethod('createSidebarPane', [title, completer.callback]);
   return completer.future;
 }
}

Extends

ChromeObject > ElementsPanel

Constructors

new ElementsPanel() #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
ElementsPanel();

new ElementsPanel.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
ElementsPanel.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

Methods

Future<ExtensionSidebarPane> createSidebarPane(String title) #

Creates a pane within panel's sidebar.

title Text that is displayed in sidebar caption.

Returns: An ExtensionSidebarPane object for created sidebar pane.

Future<ExtensionSidebarPane> createSidebarPane(String title) {
 var completer = new ChromeCompleter<ExtensionSidebarPane>.oneArg(_createExtensionSidebarPane);
 jsProxy.callMethod('createSidebarPane', [title, completer.callback]);
 return completer.future;
}

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();