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.
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. * available since Chrome 36 * https://developer.chrome.com/extensions/pageAction
(get-popup details)
Gets the html document set as the popup for this page action.
|details| - https://developer.chrome.com/extensions/pageAction#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/pageAction#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/pageAction#method-getPopup.
Gets the html document set as the popup for this page action. |details| - https://developer.chrome.com/extensions/pageAction#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/pageAction#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/pageAction#method-getPopup.
(get-title details)
Gets the title of the page action.
|details| - https://developer.chrome.com/extensions/pageAction#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/pageAction#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/pageAction#method-getTitle.
Gets the title of the page action. |details| - https://developer.chrome.com/extensions/pageAction#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/pageAction#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/pageAction#method-getTitle.
(hide tab-id)
Hides the page action. Hidden page actions still appear in the Chrome toolbar, but are grayed out.
|tab-id| - The id of the tab for which you want to modify the page 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/pageAction#method-hide.
Hides the page action. Hidden page actions still appear in the Chrome toolbar, but are grayed out. |tab-id| - The id of the tab for which you want to modify the page 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/pageAction#method-hide.
(set-icon details)
Sets the icon for the page action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the path or the imageData property must be specified.
|details| - https://developer.chrome.com/extensions/pageAction#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/pageAction#method-setIcon.
Sets the icon for the page action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the path or the imageData property must be specified. |details| - https://developer.chrome.com/extensions/pageAction#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/pageAction#method-setIcon.
(set-popup details)
Sets the html document to be opened as a popup when the user clicks on the page action's icon.
|details| - https://developer.chrome.com/extensions/pageAction#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/pageAction#method-setPopup.
Sets the html document to be opened as a popup when the user clicks on the page action's icon. |details| - https://developer.chrome.com/extensions/pageAction#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/pageAction#method-setPopup.
(set-title details)
Sets the title of the page action. This is displayed in a tooltip over the page action.
|details| - https://developer.chrome.com/extensions/pageAction#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/pageAction#method-setTitle.
Sets the title of the page action. This is displayed in a tooltip over the page action. |details| - https://developer.chrome.com/extensions/pageAction#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/pageAction#method-setTitle.
(show tab-id)
Shows the page action. The page action is shown whenever the tab is selected.
|tab-id| - The id of the tab for which you want to modify the page 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/pageAction#method-show.
Shows the page action. The page action is shown whenever the tab is selected. |tab-id| - The id of the tab for which you want to modify the page 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/pageAction#method-show.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.page-action namespace.
Taps all valid non-deprecated events in chromex.ext.page-action namespace.
(tap-on-clicked-events channel & args)
Fired when a page action icon is clicked. This event will not fire if the page action has a popup.
Events will be put on the |channel| with signature [::on-clicked [tab]] where:
|tab| - https://developer.chrome.com/extensions/pageAction#property-onClicked-tab.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/extensions/pageAction#event-onClicked.
Fired when a page action icon is clicked. This event will not fire if the page action has a popup. Events will be put on the |channel| with signature [::on-clicked [tab]] where: |tab| - https://developer.chrome.com/extensions/pageAction#property-onClicked-tab. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/extensions/pageAction#event-onClicked.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close