Skip to content

Commit 892141a

Browse files
committed
feat: add row drag selection
1 parent 27a77f0 commit 892141a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/components/BrowserRow/BrowserRow.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default class BrowserRow extends Component {
5050
onMouseDownRowCheckBox,
5151
onMouseUpRowCheckBox,
5252
onMouseOverRowCheckBox,
53+
onMouseOverRow,
5354
} = this.props;
5455
const attributes = obj.attributes;
5556
let requiredCols = [];
@@ -69,7 +70,7 @@ export default class BrowserRow extends Component {
6970
requiredCols = ['authData'];
7071
}
7172
return (
72-
<div className={styles.tableRow} style={{ minWidth: rowWidth }}>
73+
<div className={styles.tableRow} style={{ minWidth: rowWidth }} onMouseOver={() => onMouseOverRow(obj.id)}>
7374
<span
7475
className={styles.checkCell}
7576
onMouseUp={onMouseUpRowCheckBox}

src/dashboard/Data/Browser/Browser.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,6 +2068,7 @@ class Browser extends DashboardView {
20682068
onMouseDownRowCheckBox={this.onMouseDownRowCheckBox}
20692069
onMouseUpRowCheckBox={this.onMouseUpRowCheckBox}
20702070
onMouseOverRowCheckBox={this.onMouseOverRowCheckBox}
2071+
onMouseOverRow={this.onMouseOverRowCheckBox}
20712072
classes={this.classes}
20722073
classwiseCloudFunctions={this.state.classwiseCloudFunctions}
20732074
callCloudFunction={this.fetchAggregationPanelData}

src/dashboard/Data/Browser/BrowserTable.react.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ export default class BrowserTable extends React.Component {
215215
onMouseDownRowCheckBox={this.props.onMouseDownRowCheckBox}
216216
onMouseUpRowCheckBox={this.props.onMouseUpRowCheckBox}
217217
onMouseOverRowCheckBox={this.props.onMouseOverRowCheckBox}
218+
onMouseOverRow={this.props.onMouseOverRow}
218219
setShowAggregatedData={this.props.setShowAggregatedData}
219220
setErrorAggregatedData={this.props.setErrorAggregatedData}
220221
firstSelectedCell={this.props.firstSelectedCell}
@@ -295,6 +296,7 @@ export default class BrowserTable extends React.Component {
295296
onMouseDownRowCheckBox={this.props.onMouseDownRowCheckBox}
296297
onMouseUpRowCheckBox={this.props.onMouseUpRowCheckBox}
297298
onMouseOverRowCheckBox={this.props.onMouseOverRowCheckBox}
299+
onMouseOverRow={this.props.onMouseOverRow}
298300
setShowAggregatedData={this.props.setShowAggregatedData}
299301
setErrorAggregatedData={this.props.setErrorAggregatedData}
300302
firstSelectedCell={this.props.firstSelectedCell}
@@ -384,6 +386,7 @@ export default class BrowserTable extends React.Component {
384386
onMouseDownRowCheckBox={this.props.onMouseDownRowCheckBox}
385387
onMouseUpRowCheckBox={this.props.onMouseUpRowCheckBox}
386388
onMouseOverRowCheckBox={this.props.onMouseOverRowCheckBox}
389+
onMouseOverRow={this.props.onMouseOverRow}
387390
setShowAggregatedData={this.props.setShowAggregatedData}
388391
setErrorAggregatedData={this.props.setErrorAggregatedData}
389392
firstSelectedCell={this.props.firstSelectedCell}

0 commit comments

Comments
 (0)