File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ export default class Tree extends React.Component<TreeProps, TreeState> {
232232 }
233233
234234 /** See Grid#getOffsetForCell */
235- public getOffsetForRow ( { alignment, index} : { alignment : Alignment , index : number } ) : number {
235+ public getOffsetForRow ( { alignment, index} : { alignment ? : Alignment , index ? : number } ) : number {
236236 if ( this . grid ) {
237237 const { scrollTop} = this . grid . getOffsetForCell ( {
238238 alignment,
@@ -276,7 +276,7 @@ export default class Tree extends React.Component<TreeProps, TreeState> {
276276 /**
277277 * Recomputes Tree component basing on update type.
278278 *
279- * Method calls "nodeGetter" internally and flattens tree structure to an array. Depending on "update" value, it runs
279+ * Method calls "nodeGetter" internally and flattens tree structure to an array. Depending on "update" value it runs
280280 * one of the following algorithms:
281281 * 1) Update.NodesAndOpenness. Requires full node metadata. Updates order, number and rendering data of all
282282 * nodes. Overrides current openness state with "openedByDefault" value.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export interface Node<T = any> {
1515 height ?: number ;
1616
1717 /**
18- * Current node openness state. Will set node openness state on first rendering or if : update is set to
18+ * Current node openness state. Will set node openness state on first rendering or if " update" is set to
1919 * Update.NodeAndOpenness.
2020 */
2121 isOpenedByDefault : boolean ;
@@ -52,12 +52,12 @@ export interface RowRendererParams<T = any> {
5252
5353 /**
5454 * Inline styles for toggle control. Contains two styles:
55- * 1) a "controlStyle" property set in Tree component and.
56- * 2) default styles necessary for displaying control
55+ * 1) a "controlStyle" property set in Tree component,
56+ * 2) default styles necessary for displaying control.
5757 */
5858 controlStyle : CSSProperties ;
5959
60- /** Optional HTML id. It will be an "id" property set in Tree component */
60+ /** Optional HTML id ( an "id" property set in Tree component) */
6161 id : string ;
6262
6363 /** Current row index in the list of all rows */
You can’t perform that action at this time.
0 commit comments