type: 'session'
if session storage is desired.cable-ready:before-clear-storage
cable-ready:after-clear-storage
clear_storage
are raised on document
.delta
is the position in the history to which you want to move, relative to the current page. A negative value moves backwards, a positive value moves forwards. delta: -1
is equivalent to pressing the browsers "Back" button.delta
equals 0
, it has the same result as calling location.reload()
.cable-ready:before-go
cable-ready:after-go
go
are raised on window
. Add a listener for the popstate
event in order to determine when the navigation has completed.window.location = "#foo"
in that both will also create and activate another history entry associated with the current document. The new URL can be any URL in the same origin as the current URL.state
parameter.push_state
never causes a hashchange
event to be fired, even if the new URL differs from the old URL only in its hash.cable-ready:before-push-state
cable-ready:after-push-state
push_state
are raised on window
. Add a listener for the popstate
event in order to determine when the navigation has completed.type: 'session'
if session storage is desired.cable-ready:before-remove-storage-item
cable-ready:after-remove-storage-item
remove_storage_item
are raised on document
.url
and indeed, it doesn't actually have to exist.state
parameter.push_state
.cable-ready:before-replace-state
cable-ready:after-replace-state
replace_state
are raised on window
. Add a listener for the popstate
event in order to determine when the navigation has completed.id
attribute) is in view.behavior: "smooth", block: "center"
a try.cable-ready:before-scroll-into-view
cable-ready:after-scroll-into-view
cable-ready:before-set-cookie
cable-ready:after-set-cookie
set_cookie
are raised on document
.cable-ready:before-set-focus
cable-ready:after-set-focus
type: 'session'
if session storage is desired.cable-ready:before-set-storage-item
cable-ready:after-set-storage-item
set_storage_item
are raised on document
.