Liking cljdoc? Tell your friends :D

chromex.ext.page-action

clj

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
raw docstring

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

get-popupclj/smacro

(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.
sourceraw docstring

get-popup*cljs

(get-popup* config details)
source

get-titleclj/smacro

(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.
sourceraw docstring

get-title*cljs

(get-title* config details)
source

hideclj/smacro

(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.
sourceraw docstring

hide*cljs

(hide* config tab-id)
source

on-clicked*cljs

(on-clicked* config channel & args)
source

set-iconclj/smacro

(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.
sourceraw docstring

set-icon*cljs

(set-icon* config details)
source

set-popupclj/smacro

(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.
sourceraw docstring

set-popup*cljs

(set-popup* config details)
source

set-titleclj/smacro

(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.
sourceraw docstring

set-title*cljs

(set-title* config details)
source

showclj/smacro

(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.
sourceraw docstring

show*cljs

(show* config tab-id)
source

tap-all-eventsclj/smacro

(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.
sourceraw docstring

tap-on-clicked-eventsclj/smacro

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close