id
|
:any
|
|
|
|
class
|
:any
|
|
|
|
navigate
|
:string
|
Navigates from a LiveView to a new LiveView.
The browser page is kept, but a new LiveView process is mounted and its content on the page
is reloaded. It is only possible to navigate between LiveViews declared under the same router
`Phoenix.LiveView.Router.live_session/3`. Otherwise, a full browser redirect is used.
|
|
|
patch
|
:string
|
Patches the current LiveView.
The `handle_params` callback of the current LiveView will be invoked and the minimum content
will be sent over the wire, as any other LiveView diff.
|
|
|
href
|
:any
|
Uses traditional browser navigation to the new location.
This means the whole page is reloaded on the browser.
|
|
|
replace
|
:boolean
|
When using `:patch` or `:navigate`,
should the browser's history be replaced with `pushState`?
|
false
|
|
method
|
:string
|
The HTTP method to use with the link.
In case the method is not `get`, the link is generated inside the form which sets the proper
information. In order to submit the form, JavaScript must be enabled in the browser.
|
"get"
|
|
csrf_token
|
:any
|
A boolean or custom token to use for links with an HTTP method other than `get`.
|
true
|
|
rest
|
:global
|
Additional HTML attributes added to the `a` tag.
|
|
|
Required
inner_block
*
|
:slot
|
The content rendered inside of the `a` tag.
|
Back to home
|