Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
9fda0fd
Components examples: Modal
mmtr Jul 31, 2018
3296d11
Components examples: Modal
mmtr Aug 2, 2018
1d6ad3e
Components examples assigned to const variables
mmtr Aug 2, 2018
b3dcc26
Components examples: Notice
mmtr Aug 3, 2018
e298099
Components examples: Panel
mmtr Aug 3, 2018
abe9a02
Components examples: Placeholder
mmtr Aug 3, 2018
68d9457
Components examples: Popover
mmtr Aug 3, 2018
e7c21e5
Components examples: QueryControls
mmtr Aug 3, 2018
48de4b4
Components examples: RadioControl
mmtr Aug 3, 2018
d764061
Components examples: RangeControl
mmtr Aug 3, 2018
183c7d1
Components examples: ResponsiveWrapper
mmtr Aug 3, 2018
0239415
Components examples: SandBox
mmtr Aug 3, 2018
6b2c8b2
Components examples: ScrollLock
mmtr Aug 3, 2018
308eefd
Components examples: SelectControl
mmtr Aug 3, 2018
32dafc0
Components examples: ServerSideRender
mmtr Aug 4, 2018
201ff80
Add metadata using YAML front matter so examples can be extracted
mmtr Aug 4, 2018
40d1d44
Add metadata using YAML front matter so examples can be extracted
mmtr Aug 4, 2018
f1debb9
Remove YAML front matter
mmtr Aug 4, 2018
04c2649
Components examples: SlotFill
mmtr Aug 4, 2018
f52ff8d
Components examples: Spinner
mmtr Aug 4, 2018
7cf6f08
Components examples: TabPanel
mmtr Aug 4, 2018
b541266
Components examples: TextControl
mmtr Aug 4, 2018
81ef947
Components examples: TextareaControl
mmtr Aug 4, 2018
5984848
Components examples: ToggleControl
mmtr Aug 4, 2018
aacb094
Components examples: Toolbar
mmtr Aug 4, 2018
2a75f76
Components examples: Tooltip
mmtr Aug 4, 2018
cb4d859
Components examples: TreeSelect
mmtr Aug 4, 2018
a0aca61
Components examples: NavigableContainer
mmtr Aug 4, 2018
e7f85bb
Components examples: navigateRegions
mmtr Aug 4, 2018
6bc6fbc
Components examples: withConstrainedTabbing
mmtr Aug 4, 2018
2b7c999
Components examples: withContext
mmtr Aug 4, 2018
4c387ce
Components examples: withFallbackStyles
mmtr Aug 4, 2018
9394810
Components examples: withFilters
mmtr Aug 4, 2018
0b0bba5
Components examples: withFocusOutside
mmtr Aug 4, 2018
8d5c451
Components examples: withFocusReturn
mmtr Aug 4, 2018
ed573aa
Components examples: withNotices
mmtr Aug 4, 2018
9a94a5b
Components examples: withSpokenMessages
mmtr Aug 4, 2018
89f0c1b
Components examples: withAPIData
mmtr Aug 5, 2018
5471769
Contributing guidelines for the components
mmtr Aug 5, 2018
c2e20b0
Contributing guidelines for the components
mmtr Aug 5, 2018
1d93a3b
Contributing guidelines for the components
mmtr Aug 5, 2018
33cbfae
Add dummy attributes to ServerSideRender example
mmtr Aug 6, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Components examples: TreeSelect
  • Loading branch information
mmtr committed Aug 6, 2018
commit cb4d85913e042e19b558836ac5877bc594d83943
14 changes: 10 additions & 4 deletions packages/components/src/tree-select/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
TreeSelect
=======
# TreeSelect

TreeSelect component is used to generate select input fields.

Expand All @@ -8,11 +7,17 @@ TreeSelect component is used to generate select input fields.

Render a user interface to select the parent page in a hierarchy of pages:
```jsx
import { TreeSelect } from '@wordpress/components';
import { withState } from '@wordpress/compose';

const MyTreeSelect = withState( {
page: 'p21',
} )( ( { page, setState } ) => (
<TreeSelect
label="Parent page"
noOptionLabel="No parent page"
onChange={ onChange }
selectedId="p211"
onChange={ ( page ) => setState( { page } ) }
selectedId={ page }
tree={ [
{
name: 'Page 1',
Expand Down Expand Up @@ -40,6 +45,7 @@ Render a user interface to select the parent page in a hierarchy of pages:
},
] }
/>
) );
```

## Props
Expand Down