Skip to content

Commit c37c588

Browse files
committed
Document defaultOptions
1 parent 68c1f4d commit c37c588

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

inst/www/react-tools/react-tools.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,18 @@ window.reactR = (function () {
2121
}
2222

2323
var defaultOptions = {
24+
// The name of the property on the root tag to use for the width, if
25+
// it's updated.
2426
widthProperty: "width",
27+
// The name of the property on the root tag to use for the height, if
28+
// it's updated.
2529
heightProperty: "height",
30+
// Whether or not to append the string 'px' to the width and height
31+
// properties when they change.
2632
appendPx: false,
33+
// Whether or not to dynamically update the width and height properties
34+
// of the last known tag when the computed width and height change in
35+
// the browser.
2736
renderOnResize: false
2837
};
2938

0 commit comments

Comments
 (0)