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
- Python Experimental
await io.display.link("Run another action", {
route: "usefulAction",
theme: "danger",
});
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
- Python Experimental
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
route
Optional
str
Slug of another action or page to link to. Alternative to `url`.
params
Optional
Mapping[str, PrimitiveValue]
Arbitrary key/value pairs to be passed to the given action slug. Only applies when `action` is defined.
PrimitiveValue = str | int | float | bool | date | time | datetime
theme
Optional
Literal["default", "danger"]
Button visual theme.
url
Optional
str
Absolute URL to link to external resources. Alternative to `action`.
Returns
None
Did this section clearly explain what you wanted to learn?