Skip to content

Commit

Permalink
updated readme and vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Feb 22, 2022
1 parent 8309152 commit 43b43c9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# shinybusy (unreleased)
# shinybusy 0.3.0

* Internal: use [{packer}](https://github.com/JohnCoene/packer) to manage JavaScript assets.
* New function `update_modal_spinner()` to update modal spinner text ([#19](https://github.com/dreamRs/shinybusy/issues/19)).
Expand Down
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ remotes::install_github("dreamRs/shinybusy")

## Examples

### Automated busy indicators

### Gif
#### Gif

Animate a Gif when server is busy and pause animation when server is idle :

Expand All @@ -43,7 +44,7 @@ add_busy_gif(src = "https://jeroen.github.io/images/banana.gif", height = 70, wi



### Progress bar
#### Progress bar

Make an infinite progress bar appear on top of the page when server is busy :

Expand All @@ -56,26 +57,21 @@ add_busy_bar(color = "#FF0000")



### Spinner
#### Spinner

Add a spinner when server is busy on top-right corner of the page with:


```r
# UI
add_busy_spinner(spin = "fading-circle")
```

Classic Shiny:
![](man/figures/shinybusy-spin.gif)


Shinydashboard:
![](man/figures/spin-dash.png)

Shinythemes:
![](man/figures/spin-theme.png)
### Other functionalities

Display a loading indicator at the start of the application until it is ready to be used, block application interaction until a calculation is done, send notifications to user, ... See vignette or [online website](https://dreamrs.github.io/shinybusy/) for more.



Expand Down
17 changes: 17 additions & 0 deletions vignettes/shinybusy-usage.Rmd → vignettes/shinybusy.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,20 @@ Don't forget to remove the modal window when computation is finished !



## Notifications

Show notifications and reports to user through JavaScript library [Notiflix](https://notiflix.github.io/). Four appearance are available: success, failure, info and warning. Notifications are fully configurable.

```{r notifications, eval=FALSE}
# success notification
notify_success("Well done!")
# report failure
report_failure(
"Oups...",
"Something went wrong"
)
```



0 comments on commit 43b43c9

Please sign in to comment.