(pageId: string): void
(params: {
pageId?: string,
home?: boolean,
url?: string,
newTab?:boolean,
input?: object,
urlQuery? object
}): void
The Link
action is used to link a user to another page. An input can be passed to the next page using either the
urlQuery
, which is visible to the user, but persists if the browser is refreshed, or by using the input
object, which is not
visible to the user.
Parameters
string
The pageId of a page in the app to link to.
object
pageId: string
: The pageId of a page in the app to link to.home: boolean
: Link to the home page. This is either the configured public or authenticated homepage, or the first page in the default menu visible to the user.url: string
: Link to an external url.newTab: boolean
: Open the link in a new tab.input: object
: Object to set as the input for the linked page.urlQuery: object
: Object to set as the urlQuery for the linked page.
Examples
Shorthand, only specify pageId as string:
- id: shorthand
type: Link
params: my_page_id
Specify pageId:
- id: link_page_id
type: Link
params:
pageId: myPageId
Link to home page:
- id: link_home
type: Link
params:
home: true
Link to an external url:
- id: link_url
type: Link
params:
url: www.lowdefy.com
Open a link in a new tab:
- id: link_new_tab
type: Link
params:
pageId: my_page_id
newTab: true
Set the urlQuery of the page that is linked to:
- id: link_url_query
type: Link
params:
pageId: my_page_id
urlQuery:
id:
_state: id
Set the input of the page that is linked to:
- id: link_input
type: Link
params:
pageId: my_page_id
input:
id:
_args: row.id