Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its icon, a browser action can have a tooltip, a badge, and a popup.
Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its icon, a browser action can have a tooltip, a badge, and a popup. * available since Chrome 36 * https://developer.chrome.com/extensions/browserAction
(disable)
(disable tab-id)
Disables the browser action for a tab.
|tab-id| - The ID of the tab for which to modify the browser action.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-disable.
Disables the browser action for a tab. |tab-id| - The ID of the tab for which to modify the browser action. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-disable.
(enable)
(enable tab-id)
Enables the browser action for a tab. Defaults to enabled.
|tab-id| - The ID of the tab for which to modify the browser action.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-enable.
Enables the browser action for a tab. Defaults to enabled. |tab-id| - The ID of the tab for which to modify the browser action. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-enable.
(get-badge-background-color details)
Gets the background color of the browser action.
|details| - https://developer.chrome.com/extensions/browserAction#property-getBadgeBackgroundColor-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-getBadgeBackgroundColor.
Gets the background color of the browser action. |details| - https://developer.chrome.com/extensions/browserAction#property-getBadgeBackgroundColor-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - https://developer.chrome.com/extensions/browserAction#property-callback-result. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-getBadgeBackgroundColor.
(get-badge-text details)
Gets the badge text of the browser action. If no tab is specified, the non-tab-specific badge text is returned.
|details| - https://developer.chrome.com/extensions/browserAction#property-getBadgeText-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-getBadgeText.
Gets the badge text of the browser action. If no tab is specified, the non-tab-specific badge text is returned. |details| - https://developer.chrome.com/extensions/browserAction#property-getBadgeText-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - https://developer.chrome.com/extensions/browserAction#property-callback-result. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-getBadgeText.
(get-popup details)
Gets the HTML document that is set as the popup for this browser action.
|details| - https://developer.chrome.com/extensions/browserAction#property-getPopup-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-getPopup.
Gets the HTML document that is set as the popup for this browser action. |details| - https://developer.chrome.com/extensions/browserAction#property-getPopup-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - https://developer.chrome.com/extensions/browserAction#property-callback-result. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-getPopup.
(get-title details)
Gets the title of the browser action.
|details| - https://developer.chrome.com/extensions/browserAction#property-getTitle-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - https://developer.chrome.com/extensions/browserAction#property-callback-result.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-getTitle.
Gets the title of the browser action. |details| - https://developer.chrome.com/extensions/browserAction#property-getTitle-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - https://developer.chrome.com/extensions/browserAction#property-callback-result. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-getTitle.
(set-badge-background-color details)
Sets the background color for the badge.
|details| - https://developer.chrome.com/extensions/browserAction#property-setBadgeBackgroundColor-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-setBadgeBackgroundColor.
Sets the background color for the badge. |details| - https://developer.chrome.com/extensions/browserAction#property-setBadgeBackgroundColor-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-setBadgeBackgroundColor.
(set-badge-text details)
Sets the badge text for the browser action. The badge is displayed on top of the icon.
|details| - https://developer.chrome.com/extensions/browserAction#property-setBadgeText-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-setBadgeText.
Sets the badge text for the browser action. The badge is displayed on top of the icon. |details| - https://developer.chrome.com/extensions/browserAction#property-setBadgeText-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-setBadgeText.
(set-icon details)
Sets the icon for the browser action. The icon can be specified as the path to an image file, as the pixel data from a canvas element, or as a dictionary of one of those. Either the path or the imageData property must be specified.
|details| - https://developer.chrome.com/extensions/browserAction#property-setIcon-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-setIcon.
Sets the icon for the browser action. The icon can be specified as the path to an image file, as the pixel data from a canvas element, or as a dictionary of one of those. Either the path or the imageData property must be specified. |details| - https://developer.chrome.com/extensions/browserAction#property-setIcon-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-setIcon.
(set-popup details)
Sets the HTML document to be opened as a popup when the user clicks the browser action icon.
|details| - https://developer.chrome.com/extensions/browserAction#property-setPopup-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-setPopup.
Sets the HTML document to be opened as a popup when the user clicks the browser action icon. |details| - https://developer.chrome.com/extensions/browserAction#property-setPopup-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-setPopup.
(set-title details)
Sets the title of the browser action. This title appears in the tooltip.
|details| - https://developer.chrome.com/extensions/browserAction#property-setTitle-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/browserAction#method-setTitle.
Sets the title of the browser action. This title appears in the tooltip. |details| - https://developer.chrome.com/extensions/browserAction#property-setTitle-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/browserAction#method-setTitle.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.browser-action namespace.
Taps all valid non-deprecated events in chromex.ext.browser-action namespace.
(tap-on-clicked-events channel & args)
Fired when a browser action icon is clicked. Does not fire if the browser action has a popup.
Events will be put on the |channel| with signature [::on-clicked [tab]] where:
|tab| - https://developer.chrome.com/extensions/browserAction#property-onClicked-tab.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/extensions/browserAction#event-onClicked.
Fired when a browser action icon is clicked. Does not fire if the browser action has a popup. Events will be put on the |channel| with signature [::on-clicked [tab]] where: |tab| - https://developer.chrome.com/extensions/browserAction#property-onClicked-tab. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/extensions/browserAction#event-onClicked.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close