Actions
API 参考
Action
例子
import { ActionPanel, Action, List } from "@raycast/api";
export default function Command() {
return (
<List navigationTitle="Open Pull Requests">
<List.Item
title="Docs: Update API Reference"
subtitle="#1"
actions={
<ActionPanel title="#1 in raycast/extensions">
<Action.OpenInBrowser url="https://github.com/raycast/extensions/pull/1" />
<Action.CopyToClipboard title="Copy Pull Request Number" content="#1" />
<Action title="Close Pull Request" onAction={() => console.log("Close PR #1")} />
</ActionPanel>
}
/>
</List>
);
}参数
名称
描述
类型
默认
Action.CopyToClipboard
例子
参数
名称
描述
类型
默认
Action.Open
例子
参数
名称
描述
类型
默认
Action.OpenInBrowser
例子
参数
名称
描述
类型
默认
Action.OpenWith
例子
参数
Prop
Description
Type
Default
Action.Paste
例子
参数
名称
描述
类型
默认
Action.Push
例子
参数
名称
描述
类型
默认
Action.ShowInFinder
例子
参数
名称
描述
类型
默认
Action.SubmitForm
例子
参数
名称
描述
类型
默认
Action.Trash
例子
参数
名称
描述
类型
默认
Action.CreateSnippet
例子
参数
名称
描述
类型
默认
Action.CreateQuicklink
例子
参数
名称
描述
类型
默认
Action.ToggleQuickLook
例子
参数
名称
描述
类型
默认
Action.PickDate
例子
参数
名称
描述
类型
默认
类型
Snippet
属性
名称
描述
Type
Quicklink
属性
名称
描述
类型
Action.Style
Action.PickDate.Type
枚举成员
名称
描述
最后更新于