Skip to content

Commit

Permalink
maj readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Mar 27, 2024
1 parent ac5d33a commit 525b687
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Version: 0.0.0.9000
Authors@R: c(
person("Victor", "Perrier", email = "[email protected]", role = c("aut", "cre", "cph")),
person("Fanny", "Meyer", role = "aut"))
Description: What the package does (one paragraph).
Description: Custom input widgets for 'Shiny' applications created from 'React' components.
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,28 @@ dualListBoxInput(

![dualListBoxInput](man/figures/dualListBox.png)



## Select

From [react-select](https://react-select.com/home)

```r
reactSelectInput(
"ID2",
label = "Multi react select example:",
options = prepareReactSelectOptions(list(
earth = list("luna"),
mars = c("phobos", "deimos"),
jupiter = c("io", "europa", "ganymede", "callisto")
)),
selected = "ganymede",
placeholder = "Search for an option by typing",
isMulti = TRUE,
isSearchable = TRUE,
width = "100%"
)
```

![reactSelect](man/figures/reactSelect.png)

Binary file added man/figures/reactSelect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 525b687

Please sign in to comment.