Skip to content

Commit

Permalink
Merge pull request #41 from react-R/try-addelid
Browse files Browse the repository at this point in the history
Add element to Shiny input
  • Loading branch information
timelyportfolio authored Jul 9, 2020
2 parents 1e5374f + 152af9f commit a5d9869
Show file tree
Hide file tree
Showing 6 changed files with 1,437 additions and 1,206 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: reactR
Type: Package
Title: React Helpers
Version: 0.4.2
Date: 2020-01-23
Version: 0.4.3
Date: 2020-07-01
Authors@R: c(
person(
"Facebook", "Inc"
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# reactR 0.4.3

* Add element to Shiny input [pull 41](https://github.com/react-R/reactR/pull/41)

* Upgrade npm dependencies

# reactR 0.4.2

* Update react to `16.12.0`
Expand Down
181 changes: 103 additions & 78 deletions inst/www/react-tools/react-tools.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/www/react-tools/react-tools.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion srcjs/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ export function reactShinyInput(selector,
const element = React.createElement(component, {
configuration: this.getInputConfiguration(el),
value: this.getValue(el),
setValue: this.setValue.bind(this, el)
setValue: this.setValue.bind(this, el),
el: el
});
ReactDOM.render(element, el);
}
Expand Down
Loading

0 comments on commit a5d9869

Please sign in to comment.