Skip to content

Commit 882d214

Browse files
committed
Simplify examples page text
1 parent 462a160 commit 882d214

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

examples/src/index.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
1111
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Roboto">
1212
<link rel="stylesheet" href="style.css">
13+
1314
<!-- Global site tag (gtag.js) - Google Analytics -->
1415
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-133457161-1"></script>
1516
<script>
@@ -31,13 +32,14 @@ <h2 class="project-tagline">A simple and elegant checkbox tree for React</h2>
3132

3233
<section class="main-content">
3334
<p>
34-
<strong>React Checkbox Tree</strong> is a feature-rich React component for a checkbox treeview.
35-
Checkout the examples below and then view <a href="https://github.com/jakezatecky/react-checkbox-tree/tree/master/examples/src/js">source code</a>
36-
or main <a href="https://github.com/jakezatecky/react-checkbox-tree">documentation page</a> when you are ready
37-
to try it out.
35+
<strong>React Checkbox Tree</strong> is a feature-rich checkbox tree view for React. Checkout the examples below
36+
and the associated <a href="https://github.com/jakezatecky/react-checkbox-tree/tree/master/examples/src/js">source code</a>.
37+
Head to the <a href="https://github.com/jakezatecky/react-checkbox-tree">documentation</a> when you are ready to
38+
try it out.
3839
</p>
3940

4041
<h1>Examples</h1>
42+
4143
<h2>Basic Example</h2>
4244
<div id="basic-example"></div>
4345

@@ -49,9 +51,9 @@ <h2>Disabled Example</h2>
4951

5052
<h2>No Cascading Example</h2>
5153
<p>
52-
By default, the check state of a parent is determined by the check state of its children. Similarly, checking or
53-
unchecking a parent node will cascade that status to all of its children. To disable this behavior, simply pass
54-
the <code>noCascade</code> property.
54+
By default, the check state of children determine the check state of a parent. Similarly, checking or unchecking
55+
a parent node will cascade that status to all of its children. To disable this behavior, simply pass the
56+
<code>noCascade</code> property.
5557
</p>
5658
<div id="no-cascade-example"></div>
5759

@@ -64,9 +66,8 @@ <h2>Pessimistic Toggle Example</h2>
6466

6567
<h2>Clickable Labels Example</h2>
6668
<p>
67-
By default, clicking on the node label toggles the checkbox value. By providing an <code>onClick</code> property
68-
the checkbox will toggle only when clicking on the checkbox and the provided function will be called when
69-
clicking on the node label.
69+
By default, clicking on the node label toggles the checkbox value. When providing the <code>onClick</code>
70+
property, the tree will instead call the provided function and will restrict toggling to the checkbox icon.
7071
</p>
7172
<p>
7273
When the <code>onClick</code> function is defined, passing the <code>expandOnClick</code> property will also
@@ -76,25 +77,24 @@ <h2>Clickable Labels Example</h2>
7677

7778
<h2>Hide Checkboxes Example</h2>
7879
<p>
79-
Checkboxes can be hidden on a node-level by setting <code>showCheckbox: false</code> for any given node. They
80-
can also be more broadly hidden by the passing the <code>onlyLeafCheckboxes</code> property, which will force
81-
checkboxes to render only on leaf nodes.
80+
Set <code>showCheckbox: false</code> at the node level to hide its checkbox. To force the tree to only render
81+
checkboxes for leaf nodes, pass the <code>onlyLeafCheckboxes</code> property.
8282
</p>
8383
<div id="hidden-checkboxes-example"></div>
8484

8585
<h2>Expand All/Collapse All Example</h2>
8686
<p>
8787
By passing in the <code>showExpandAll</code> property, two additional buttons will appear at the top of the tree
88-
that allow the user to easily expand or collapse all nodes.
88+
that allow the user to expand or collapse all nodes.
8989
</p>
9090
<div id="expand-all-example"></div>
9191

9292
<h2>Large Data Example</h2>
93-
<p>The checkbox tree is capable of supporting a large number of nodes at once.</p>
93+
<p>The checkbox tree can support a large number of nodes at once.</p>
9494
<div id="large-data-example"></div>
9595

9696
<h2>Filter Example</h2>
97-
<p>Filtering of nodes is also easily possible.</p>
97+
<p>Filtering tree nodes is possible.</p>
9898
<div id="filter-example"></div>
9999

100100
<footer class="site-footer">

0 commit comments

Comments
 (0)