io.display.link
Displays a button-styled action link to the action user. Can link to an external URL or to another action.
Usage
- TypeScript
- JavaScript
await io.display.link("Run another action", {
route: "usefulAction",
theme: "danger",
});
await io.display.link("Run another action", {
route: "usefulAction",
theme: "danger",
});
interval.com
Props
- TypeScript
- JavaScript
params
Optional
object
Arbitrary key/value pairs to be passed to the given action slug. Only applies when `action` is defined.
route
Optional
string
Slug of another action or page to link to. Alternative to `url`.
theme
Optional
"default" | "danger"
Button visual theme.
url
Optional
string
Absolute URL to link to external resources.
Returns
null
params
Optional
object
Arbitrary key/value pairs to be passed to the given action slug. Only applies when `action` is defined.
route
Optional
string
Slug of another action or page to link to. Alternative to `url`.
theme
Optional
"default" | "danger"
Button visual theme.
url
Optional
string
Absolute URL to link to external resources.
Returns
null
Did this section clearly explain what you wanted to learn?