Skip to main content

JumpListItem Object

  • type string (optional) - One of the following:以下其中一项:
    • task - A task will launch an app with specific arguments.任务将启动具有特定参数的应用程序。
    • separator - Can be used to separate items in the standard Tasks category.可用于分离标准Tasks类别中的项目。
    • file - A file link will open a file using the app that created the Jump List, for this to work the app must be registered as a handler for the file type (though it doesn't have to be the default handler).文件链接将使用创建跳转列表的应用程序打开一个文件,要使其工作,应用程序必须注册为该文件类型的处理程序(尽管它不必是默认处理程序)。
  • path string (optional) - Path of the file to open, should only be set if type is file.只有当typefile时,才应设置要打开的文件的路径。
  • program string (optional) - Path of the program to execute, usually you should specify process.execPath which opens the current program. 要执行的程序的路径,通常您应该指定process.execPath来打开当前程序。Should only be set if type is task.仅当typetask时才应设置。
  • args string (optional) - The command line arguments when program is executed. program执行时的命令行参数。Should only be set if type is task.仅当typetask时才应设置。
  • title string (optional) - The text to be displayed for the item in the Jump List. 要为跳转列表中的项目显示的文本。Should only be set if type is task.仅当typetask时才应设置。
  • description string (optional) - Description of the task (displayed in a tooltip). 任务的描述(显示在工具提示中)。Should only be set if type is task. 仅当typetask时才应设置。Maximum length 260 characters.最大长度为260个字符。
  • iconPath string (optional) - The absolute path to an icon to be displayed in a Jump List, which can be an arbitrary resource file that contains an icon (e.g. .ico, .exe, .dll). 要在跳转列表中显示的图标的绝对路径,跳转列表可以是包含图标(例如.ico.exe.dll)的任意资源文件。You can usually specify process.execPath to show the program icon.您通常可以指定process.execPath来显示程序图标。
  • iconIndex number (optional) - The index of the icon in the resource file. 资源文件中图标的索引。If a resource file contains multiple icons this value can be used to specify the zero-based index of the icon that should be displayed for this task. 如果资源文件包含多个图标,则此值可用于指定应为此任务显示的图标的从零开始的索引。If a resource file contains only one icon, this property should be set to zero.如果资源文件只包含一个图标,则此属性应设置为零。
  • workingDirectory string (optional) - The working directory. Default is empty.工作目录。默认值为空。