Skip to content

Commit

Permalink
docs: Add properly rendered document to docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed May 6, 2024
1 parent c00d7ce commit 920a1d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file added website/static/img/widgets/frame_document.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion website/widgets/form/frame.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ q.page['example'] = ui.form_card(box='1 1 7 7', items=[

The frame is also a preffered way for displaying documents. Simply provide a path to the PDF file.

```py
![sample document render](/img/widgets/frame_document.png)

```py ignore
q.page['example'] = ui.form_card(box='1 1 7 7', items=[
ui.frame(path='/assets/examples/sample-document.pdf')
])
Expand Down

0 comments on commit 920a1d4

Please sign in to comment.