mirror of
https://github.com/electron/electron.git
synced 2026-01-08 07:04:01 -05:00
* docs: unify [!NOTE] structure * Update docs/api/command-line.md Co-authored-by: Niklas Wenzel <dev@nikwen.de> * Update docs/api/browser-window.md Co-authored-by: Niklas Wenzel <dev@nikwen.de> * Update docs/api/download-item.md Co-authored-by: Niklas Wenzel <dev@nikwen.de> * Update docs/api/global-shortcut.md Co-authored-by: Niklas Wenzel <dev@nikwen.de> * revert line break --------- Co-authored-by: Niklas Wenzel <dev@nikwen.de>
1.4 KiB
1.4 KiB
JumpListCategory Object
typestring (optional) - One of the following:tasks- Items in this category will be placed into the standardTaskscategory. There can be only one such category, and it will always be displayed at the bottom of the Jump List.frequent- Displays a list of files frequently opened by the app, the name of the category and its items are set by Windows.recent- Displays a list of files recently opened by the app, the name of the category and its items are set by Windows. Items may be added to this category indirectly usingapp.addRecentDocument(path).custom- Displays tasks or file links,namemust be set by the app.
namestring (optional) - Must be set iftypeiscustom, otherwise it should be omitted.itemsJumpListItem[] (optional) - Array ofJumpListItemobjects iftypeistasksorcustom, otherwise it should be omitted.
Note
If a
JumpListCategoryobject has neither thetypenor thenameproperty set then itstypeis assumed to betasks. If thenameproperty is set but thetypeproperty is omitted then thetypeis assumed to becustom.
Note
The maximum length of a Jump List item's
descriptionproperty is 260 characters. Beyond this limit, the item will not be added to the Jump List, nor will it be displayed.