简体   繁体   中英

How can I create this pop-up dialog in chrome?

http://i.imgur.com/qBGAxXd.png

This is the dialog that appears when you right-click a bookmark and choose 'edit'. I'd like to create something in similar style (has multiple fields for user input) for a chrome extension I'm creating, but I can't even figure out what it's called, let alone how to code it.

That would be the Chrome Bookmark Edit Dialog. To perform similar actions to that dialog in your extension, you'll need to use the chrome.bookmarks api. Here's the full documentation on that api: http://developer.chrome.com/extensions/bookmarks.html .

Start by requesting bookmarks permissions in your manifest.json and go from there:

"name": "My extension",
  ...
  "permissions": [
    "bookmarks"
  ],
  ...
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM