Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for bookmarks.BookmarkTreeNode.
Developer library 6
bookmarks
te bookmarks in the root node of the bookmarks tree. Doing so causes an error with the message: "_The bookmark root cannot be modified_" ## Types - bookmarks.BookmarkTreeNode - : Represents a bookmark or folder in the bookmarks tree. - bookmarks.BookmarkTreeNodeType - : A String enum which describes whether a node in the tree is a bookmark, a folder, or a separator. - bookmarks.BookmarkTreeNodeUnmodifiable -
bookmarks.BookmarkTreeNodeUnmodifiable
The **`bookmarks.BookmarkTreeNodeUnmodifiable`** type is used to indicate the reason that a node in the bookmark tree (where each node is either a bookmark or a bookmark folder) cannot be changed. This is used as the value of the bookmarks.BookmarkTreeNode.unmodifiable field on bookmark nodes. ## Type `bookmarks.BookmarkTreeNodeUnmodifiable` is a String which can currently have only one value: `"managed"`. This ind
bookmarks.create()
Creates a bookmark or folder as a child of the BookmarkTreeNode with the specified `parentId`. To create a folder, omit or leave empty the CreateDetails parameter. > [!WARNING] > If your extension tries to create a new bookmark in the bookmark tree's root node, it raises an error: "_The bookmark root cannot be modified_" and the bookmark won't be created. This is an asynchronous function that returns a [`Promise`](
bookmarks.getChildren()
**`bookmarks.getChildren()`** retrieves all the immediate children of a bookmark folder, identified as a BookmarkTreeNode ID. This is an asynchronous function that returns a [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise). ## Syntax ```js-nolint let gettingChildren = browser.bookmarks.getChildren( id // string ) ``` ### Parameters - `id` - : A String that specifies the
bookmarks.getSubTree()
The **`bookmarks.getSubTree()`** method asynchronously retrieves a bookmarks.BookmarkTreeNode, given its ID. If the item is a folder, you can access all its descendants recursively using its `children` property and the `children` property of its descendants, if they are themselves folders. This is an asynchronous function that returns a [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise). ## Syntax
bookmarks.get()
Given the ID of a bookmarks.BookmarkTreeNode or an array of such IDs, the **`bookmarks.get()`** method retrieves the matching nodes. This is an asynchronous function that returns a [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise). ## Syntax ```js-nolint let getBookmarks = browser.bookmarks.get( idOrIdList // string or string array ) ``` ### Parameters - `idOrIdList` - : A Str