Skip to content

Commit

Permalink
Merge pull request #21 from Merck/layout
Browse files Browse the repository at this point in the history
Add sections on horizontal scrolling and hiding filters
  • Loading branch information
elong0527 authored Dec 20, 2023
2 parents 3500bf0 + 33a1e82 commit 9f0e283
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions vignettes/layout.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ outdata |>
ae_forestly(width = 1000)
```

# Horizontal scrolling

Set `ae_forestly(..., width = NULL)` to make the element scrollable horizontally.
This is particularly useful when embedding the plot in pages with responsive
design, using frameworks such as Bootstrap.

# Change variable listed in drill-down table

Users can explore AE listing by clicking $\blacktriangleright$ of each row
Expand All @@ -121,3 +127,16 @@ metadata |>
format_ae_forestly() |>
ae_forestly()
```

# Hide filters

You can use simple CSS rules to hide the incidence rate filter element.
For example, in an R Markdown document, use:

````{verbatim, lang="css"}
```{css, echo=FALSE}
#filter_subject {
display: none;
}
```
````

0 comments on commit 9f0e283

Please sign in to comment.