Skip to content

Commit f8b4b4c

Browse files
committed
changelog, TreeView documentation small updates
1 parent cc30d3c commit f8b4b4c

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

CHANGELOG.JSON

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"version": "1.18.0",
55
"changes": {
66
"new": [
7-
"Pagination Control [#535](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/535)"
7+
"Pagination Control [#535](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/535)",
8+
"TreeView Control [#536](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/536)"
89
],
910
"enhancements": [
1011
"`FolderExplorer` updates: allow selection of libraries if site url is used as the root, allow passing items to be passed as a property and added to the breadcrumb, add support for loading folders from a different site, fix breadcrumb names for document libraries [#534](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/534)"
@@ -21,6 +22,7 @@
2122
"[Gautam Sheth](https://github.com/gautamdsheth)",
2223
"[João Mendes](https://github.com/joaojmendes)",
2324
"[Joel Rodrigues](https://github.com/joelfmrodrigues)",
25+
"[Nanddeep Nachan](https://github.com/nanddeepn)",
2426
"[Prasad Kasireddy](https://github.com/PrasadKasireddy)",
2527
"[Siddharth Vaghasia](https://github.com/siddharth-vaghasia)"
2628
]

docs/documentation/docs/controls/TreeView.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## TreeView control
22

3-
This graphical control allows to present a hierarchical view of information. Each tree item can have a number of subitems. This is often visualized by indentation in a list. An tree item can be expanded to reveal subitems (if exists), and collapsed to hide subitems.
3+
This graphical control allows to present a hierarchical view of information. Each tree item can have a number of subitems. This is often visualized by indentation in a list. A tree item can be expanded to reveal subitems (if exist), and collapsed to hide subitems.
44

5-
Here is an example of the control in action:
5+
Here are examples of the control in action:
66

77
![Tree View control](../assets/TreeView-control.gif)
88

@@ -60,9 +60,9 @@ private onTreeItemExpandCollapse(item: ITreeItem, isExpanded: boolean) {
6060
```
6161

6262
## Custom Rendering
63-
You can fully customize how tree items are rendered by providing the onRenderItem callback function and returning whatever JSX.Element you want.
63+
You can fully customize how tree items are rendered by providing the `onRenderItem` callback function and returning whatever `JSX.Element` you want.
6464

65-
For example, you can define your function in a tsx file like this:
65+
For example, you can define your function in a .tsx file like this:
6666

6767
```typescript
6868
import * as React from 'react';
@@ -82,7 +82,7 @@ private renderCustomTreeItem(item: ITreeItem): JSX.Element {
8282

8383
## Implementation
8484

85-
The TreeView control can be configured with the following properties:
85+
The `TreeView` control can be configured with the following properties:
8686

8787
| Property | Type | Required | Description |
8888
|--------------------------------|----------------------------|----------|------------------------------------------------------------------------------------------------------------------------------------|
@@ -237,7 +237,7 @@ items: [
237237
}
238238
]
239239
```
240-
IconpProps in above example can be declared as below
240+
`IconpProps` in above example can be declared as below
241241

242242
```typescript
243243
private skypeCheckIcon: IIconProps = { iconName: 'SkypeCheck' };

docs/documentation/docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ The following controls are currently available:
6767
- [SiteBreadcrumb](./controls/SiteBreadcrumb) (Breadcrumb control)
6868
- [SecurityTrimmedControl](./controls/SecurityTrimmedControl) (intended to be used when you want to show or hide components based on the user permissions)
6969
- [TaxonomyPicker](./controls/TaxonomyPicker) (Taxonomy Picker)
70+
- [TreeView](./controls/TreeView) (Tree View)
7071
- [WebPartTitle](./controls/WebPartTitle) (Customizable web part title control)
7172

7273

docs/documentation/mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ nav:
3535
- RichText: 'controls/RichText.md'
3636
- SiteBreadcrumb: 'controls/SiteBreadcrumb.md'
3737
- SecurityTrimmedControl: 'controls/SecurityTrimmedControl.md'
38-
- TaxonomyPicker: 'controls/TaxonomyPicker.md'
38+
- TaxonomyPicker: 'controls/TaxonomyPicker.md',
39+
- TreeView: 'controls/TreeView.md',
3940
- WebPartTitle: 'controls/WebPartTitle.md'
4041
- 'Field Controls':
4142
- 'Getting started': 'controls/fields/main.md'

0 commit comments

Comments
 (0)