Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the turbo-frame[complete] attribute #97

Merged
merged 1 commit into from
Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _source/handbook/03_frames.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ Note that the `<turbo-frame>` on `/emails/set_aside` does not contain a `src` at

During navigation, a Frame will set `[aria-busy="true"]` on the `<turbo-frame>` element when fetching the new contents. When the navigation completes, the Frame will remove the `[aria-busy]` attribute. When navigating the `<turbo-frame>` through a `<form>` submission, Turbo will toggle the `[aria-busy="true"]` attribute in tandem with the Frame's.

After navigation finishes, a Frame will set the `[complete]` attribute on the
`<turbo-frame>` element.

[aria-busy]: https://www.w3.org/TR/wai-aria/#aria-busy

## Lazy-Loading Frames
Expand Down
3 changes: 3 additions & 0 deletions _source/reference/frames.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ attributes and JavaScript properties.
* `target` refers to another `<turbo-frame>` element by ID to be navigated when
a descendant `<a>` is clicked. When `target="_top"`, navigate the window.

* `complete` is a boolean attribute whose presence or absence indicates whether
or not the `<turbo-frame>` element has finished navigating.

* `autoscroll` is a [boolean attribute][] that controls whether or not to scroll
a `<turbo-frame>` element (and its descendant `<turbo-frame>` elements) into
view when after loading. Control the scroll's vertical alignment by setting the
Expand Down