Skip to content

Commit

Permalink
chore: update docs with preffered way of displaying documents #2291
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Mar 28, 2024
1 parent 5fd6aa5 commit 0aed21f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/widgets/form/frame.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ q.page['example'] = ui.form_card(box='1 1 7 7', items=[
])
```

## With document

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

```py
q.page['example'] = ui.form_card(box='1 1 4 7', items=[
ui.frame(path='https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf')
])
```

## With custom HTML

For cases when you want to build the embedded page yourself, you can use the `content` attribute that
Expand Down

0 comments on commit 0aed21f

Please sign in to comment.