* available since Chrome 36
(can-paste parent-id)
Whether there are any bookmarks that can be pasted.
|parent-id| - The ID of the folder to paste into.
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| - ?
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.
Whether there are any bookmarks that can be pasted. |parent-id| - The ID of the folder to paste into. 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| - ? 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.
(copy id-list)
Copies the given bookmarks into the clipboard.
|id-list| - An array of string-valued ids
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.
Copies the given bookmarks into the clipboard. |id-list| - An array of string-valued ids 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.
(cut id-list)
Cuts the given bookmarks into the clipboard.
|id-list| - An array of string-valued ids
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.
Cuts the given bookmarks into the clipboard. |id-list| - An array of string-valued ids 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.
(drop parent-id)
(drop parent-id index)
Performs the drop action of the drag and drop session.
|parent-id| - The ID of the folder that the drop was made. |index| - The index of the position to drop at. If left out the dropped items will be placed at the end of the existing children.
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.
Performs the drop action of the drag and drop session. |parent-id| - The ID of the folder that the drop was made. |index| - The index of the position to drop at. If left out the dropped items will be placed at the end of the existing children. 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.
(get-subtree id folders-only)
Retrieves a bookmark hierarchy from the given node. If the node id is empty, it is the full tree. If foldersOnly is true, it will only return folders, not actual bookmarks.
|id| - ID of the root of the tree to pull. If empty, the entire tree will be returned. |folders-only| - Pass true to only return folders.
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 [results] where:
|results| - ?
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.
Retrieves a bookmark hierarchy from the given node. If the node id is empty, it is the full tree. If foldersOnly is true, it will only return folders, not actual bookmarks. |id| - ID of the root of the tree to pull. If empty, the entire tree will be returned. |folders-only| - Pass true to only return folders. 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 [results] where: |results| - ? 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.
(paste parent-id)
(paste parent-id selected-id-list)
Pastes bookmarks from the clipboard into the parent folder after the last selected node.
|parent-id| - ? |selected-id-list| - An array of string-valued ids for selected bookmarks.
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.
Pastes bookmarks from the clipboard into the parent folder after the last selected node. |parent-id| - ? |selected-id-list| - An array of string-valued ids for selected bookmarks. 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.
(redo)
Performs a redo of last undone change to the bookmark model.
Performs a redo of last undone change to the bookmark model.
(remove-trees id-list)
Recursively removes list of bookmarks nodes.
|id-list| - An array of string-valued ids.
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.
Recursively removes list of bookmarks nodes. |id-list| - An array of string-valued ids. 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.
(sort-children parent-id)
Sorts the children of a given folder.
|parent-id| - The ID of the folder to sort the children of.
Sorts the children of a given folder. |parent-id| - The ID of the folder to sort the children of.
(start-drag id-list drag-node-index is-from-touch x y)
Begins dragging a set of bookmarks.
|id-list| - An array of string-valued ids. |drag-node-index| - The index of the dragged node in |idList
|is-from-touch| - True if the drag was initiated from touch. |x| - The clientX of the dragStart event |y| - The clientY of the dragStart event
Begins dragging a set of bookmarks. |id-list| - An array of string-valued ids. |drag-node-index| - The index of the dragged node in |idList |is-from-touch| - True if the drag was initiated from touch. |x| - The clientX of the dragStart event |y| - The clientY of the dragStart event
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.bookmark-manager-private namespace.
Taps all valid non-deprecated events in chromex.ext.bookmark-manager-private namespace.
(tap-on-drag-enter-events channel & args)
Fired when dragging bookmarks over the document.
Events will be put on the |channel| with signature [::on-drag-enter [bookmark-node-data]] where:
|bookmark-node-data| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when dragging bookmarks over the document. Events will be put on the |channel| with signature [::on-drag-enter [bookmark-node-data]] where: |bookmark-node-data| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-drag-leave-events channel & args)
Fired when the drag and drop leaves the document.
Events will be put on the |channel| with signature [::on-drag-leave [bookmark-node-data]] where:
|bookmark-node-data| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the drag and drop leaves the document. Events will be put on the |channel| with signature [::on-drag-leave [bookmark-node-data]] where: |bookmark-node-data| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-drop-events channel & args)
Fired when the user drops bookmarks on the document.
Events will be put on the |channel| with signature [::on-drop [bookmark-node-data]] where:
|bookmark-node-data| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the user drops bookmarks on the document. Events will be put on the |channel| with signature [::on-drop [bookmark-node-data]] where: |bookmark-node-data| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(undo)
Performs an undo of the last change to the bookmark model.
Performs an undo of the last change to the bookmark model.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close