Skip to content

Commit a95b118

Browse files
committed
Telemetry added to GridLayout
1 parent 5ecd12c commit a95b118

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/controls/gridLayout/GridLayout.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { IRectangle, ISize } from 'office-ui-fabric-react/lib/Utilities';
88

99
import { IGridLayoutProps, IGridLayoutState } from './GridLayout.types';
1010

11+
import * as telemetry from '../../common/telemetry';
12+
1113
// Get the constants from the SCSS so that we don't hard-code look and feel elements
1214
const ROWS_PER_PAGE: number = +styles.rowsPerPage;
1315
const MAX_ROW_HEIGHT: number = +styles.maxWidth;
@@ -19,6 +21,16 @@ const COMPACT_THRESHOLD: number = +styles.compactThreshold;
1921
* Grid layout component
2022
*/
2123
export class GridLayout extends React.Component<IGridLayoutProps, IGridLayoutState> {
24+
25+
/**
26+
* Constructor method
27+
*/
28+
constructor(props: IGridLayoutProps) {
29+
super(props);
30+
31+
telemetry.track('ReactGridLayout');
32+
}
33+
2234
// Number of columns in a row
2335
private _columnCount: number;
2436

0 commit comments

Comments
 (0)