Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
a0aaf700
Unverified
Commit
a0aaf700
authored
Oct 29, 2018
by
David
Committed by
GitHub
Oct 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13886 from grafana/davkal/explore-fix-cell-click
Explore: fix copy/paste on table cells
parents
b00e709a
5a23723f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
public/app/features/explore/Table.tsx
+10
-4
No files found.
public/app/features/explore/Table.tsx
View file @
a0aaf700
...
...
@@ -21,10 +21,16 @@ function prepareRows(rows, columnNames) {
export
default
class
Table
extends
PureComponent
<
TableProps
>
{
getCellProps
=
(
state
,
rowInfo
,
column
)
=>
{
return
{
onClick
:
()
=>
{
const
columnKey
=
column
.
Header
;
const
rowValue
=
rowInfo
.
row
[
columnKey
];
this
.
props
.
onClickCell
(
columnKey
,
rowValue
);
onClick
:
(
e
:
React
.
SyntheticEvent
)
=>
{
// Only handle click on link, not the cell
if
(
e
.
target
)
{
const
link
=
e
.
target
as
HTMLElement
;
if
(
link
.
className
===
'link'
)
{
const
columnKey
=
column
.
Header
;
const
rowValue
=
rowInfo
.
row
[
columnKey
];
this
.
props
.
onClickCell
(
columnKey
,
rowValue
);
}
}
},
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment