Anvil Documentation Suggestions [ON-GOING]

Suggestion: document how to detect and handle upload failure that may occur with a FileLoader . E.g., what type of Exception will be raised, etc.

Edit: inspired by this post: Event handler for a successful datatable insert? - #4 by p.colbert

2 Likes

See Need help using Canvas.create_linear_gradient - #7 by sweetpythona

There’s a broken link in the “Learn more about RichText” help pop-up. The “View full documentation” links to
https://anvil.works/docs/client/components/basic#richtext whereas the correct link is now
https://anvil.works/docs/client/components/containers#richtext

In this page section, the link to " Google authentication" does not seem to link correctly.

As far as I can tell, the official documentation of the special Anvil html attributes is incomplete. For instance, the anvil-if-slot-empty attribute shown in the following example is not documented there: Hand-drawn web apps

It would be great to include the info from this post regarding creating PDFs from dependent apps.

In below snap, text is different than below code. In case if both are related, need to update text accordingly in output.

2 Likes

Text that could work here and satisfy both intentions is
“This is a Link that goes to Anvil”

2 Likes
1 Like

In the documentation of the basic components (anvil.works/docs/client/components/basic#timer), the text “Set the interval property to specify the wait time in sections.” should probably be “Set the interval property to specify the wait time in seconds.”

3 Likes

New IDE:

The new beta docs link to “Importing other apps” -

takes you to docs which don’t include the 3rd party code way of adding a dependency -

1 Like

It would be good to note here that, while ordinary global variables are not allowed in server code (without the “Keep Server Running” option available only for the Business Plan), it is possible to store session data server-side this way.

1 Like

In the documentation on Canvas: Anvil Docs | Canvas

The section is titled Redraw Canvas on resize, but the function given there does not redraw the canvas. The description says Should be called after resizing the canvas., and that’s true, since otherwise the drawing in the canvas will be stretched after changing the canvas size.

More description in this section would be a good idea, including a mention that reset_context does not redraw the canvas, that still has to be done after reset_context is called.

3 Likes

Missing parenthesis in this page:

image

1 Like

The documentation page for Canvas Anvil Docs | Canvas does not mention the HTML canvas object’s quadratic_curve_to, despite it being available through Anvil’s canvas.

Mistake in the Query an external database from Python tutorial:

The keyboard shortcuts page for Beta doesn’t have Control + B to show or hide the app Browser pane

3 Likes

… and Ctrl+Q to expand/compress a region of code.

3 Likes

From Anvil Docs | SQL Access and Indexing, The sentence below is missing the other half

2 Likes