pageAction property

JSPageAction get pageAction

Use the chrome.pageAction API to put icons in the main Google Chrome toolbar, to the right of the address bar. Page actions represent actions that can be taken on the current page, but that aren't applicable to all pages. Page actions appear grayed out when inactive.

Implementation

JSPageAction get pageAction {
  var pageActionNullable = this.pageActionNullable;
  if (pageActionNullable == null) {
    throw ApiNotAvailableException('chrome.pageAction');
  }
  return pageActionNullable;
}