Skip to content

Commit 596eaff

Browse files
committed
Slightly change some wording
1 parent 7f32750 commit 596eaff

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ All node objects **must** have a unique `value`. This value is serialized into t
9595
| `checked` | array | An array of checked node values. | `[]` |
9696
| `disabled` | bool | If true, the component will be disabled and nodes cannot be checked. | `false` |
9797
| `expandDisabled` | bool | If true, the ability to expand nodes will be disabled. | `false` |
98-
| `expandOnClick` | bool | If true, nodes will be expanded by clicking on labels. Requires a non empty `onClick` function. | `false` |
98+
| `expandOnClick` | bool | If true, nodes will be expanded by clicking on labels. Requires a non-empty `onClick` function. | `false` |
9999
| `expanded` | array | An array of expanded node values. | `[]` |
100100
| `name` | string | Optional name for the hidden `<input>` element. | `undefined` |
101101
| `nameAsArray` | bool | If true, the hidden `<input>` will encode its values as an array rather than a joined string. | `false` |

examples/src/index.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ <h2 class="project-tagline">A simple and elegant checkbox tree for React</h2>
2424
<p>
2525
<strong>React Checkbox Tree</strong> is a feature-rich React component for a checkbox treeview.
2626
Checkout the examples below and then view <a href="https://github.com/jakezatecky/react-checkbox-tree/tree/master/examples/src/js">source code</a>
27-
or main <a href="https://github.com/jakezatecky/react-checkbox-tree">documentation page</a> when you are ready to try it out.
27+
or main <a href="https://github.com/jakezatecky/react-checkbox-tree">documentation page</a> when you are ready
28+
to try it out.
2829
</p>
2930

3031
<h1>Examples</h1>
@@ -48,7 +49,7 @@ <h2>No Cascading Example</h2>
4849
<h2>Pessimistic Toggle Example</h2>
4950
<p>
5051
Try clicking a partially-checked node below. Instead of cascading a checked state to all children, the
51-
pessimistic model will uncheck children and their descendents.
52+
pessimistic model will uncheck children and their descendants.
5253
</p>
5354
<div id="pessimistic-toggle-example"></div>
5455

@@ -66,11 +67,13 @@ <h2>Large Data Example</h2>
6667

6768
<h2>Clickable Labels Example</h2>
6869
<p>
69-
By default, clicking on the node label texts toggle the checkbox value. Providing an <code>onClick</code> property the checkbox will toggle
70-
only when clicking on the checkbox and the provided function will be called when clicking on the node label text.
70+
By default, clicking on the node label toggles the checkbox value. By providing an <code>onClick</code> property
71+
the checkbox will toggle only when clicking on the checkbox and the provided function will be called when
72+
clicking on the node label.
7173
</p>
7274
<p>
73-
When the <code>onClick</code> function is defined passing the <code>expandOnClick</code> property will expand the clicked node automatically.
75+
When the <code>onClick</code> function is defined, passing the <code>expandOnClick</code> property will also
76+
expand the clicked node automatically.
7477
</p>
7578
<div id="clickable-labels-example"></div>
7679

0 commit comments

Comments
 (0)