Add copy cell option in network plugin
Summary: Puts a context menu in the sidebar for the network plugin. Before, user was not able to select the text from sidebar Reviewed By: passy Differential Revision: D18808544 fbshipit-source-id: bdbc86972cd1d508e9b7d96da9df5c8e53bec991
This commit is contained in:
committed by
Facebook Github Bot
parent
d37c64c329
commit
e1e2978b19
@@ -615,23 +615,28 @@ export class ManagedTable extends React.Component<
|
|||||||
.filter(notNull);
|
.filter(notNull);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TableRow
|
<ContextMenu
|
||||||
key={rows[index].key}
|
buildItems={
|
||||||
columnSizes={columnSizes}
|
this.props.buildContextMenuItems || this.buildContextMenuItems
|
||||||
columnKeys={columnKeys}
|
}>
|
||||||
onMouseDown={e => this.onHighlight(e, rows[index], index)}
|
<TableRow
|
||||||
onMouseEnter={e => this.onMouseEnterRow(e, rows[index], index)}
|
key={rows[index].key}
|
||||||
multiline={multiline}
|
columnSizes={columnSizes}
|
||||||
rowLineHeight={24}
|
columnKeys={columnKeys}
|
||||||
highlighted={highlightedRows.has(rows[index].key)}
|
onMouseDown={e => this.onHighlight(e, rows[index], index)}
|
||||||
row={rows[index]}
|
onMouseEnter={e => this.onMouseEnterRow(e, rows[index], index)}
|
||||||
index={index}
|
multiline={multiline}
|
||||||
style={
|
rowLineHeight={24}
|
||||||
rows[index].height ? {...style, height: rows[index].height} : style
|
highlighted={highlightedRows.has(rows[index].key)}
|
||||||
}
|
row={rows[index]}
|
||||||
onAddFilter={onAddFilter}
|
index={index}
|
||||||
zebra={zebra}
|
style={
|
||||||
/>
|
rows[index].height ? {...style, height: rows[index].height} : style
|
||||||
|
}
|
||||||
|
onAddFilter={onAddFilter}
|
||||||
|
zebra={zebra}
|
||||||
|
/>
|
||||||
|
</ContextMenu>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user