egorklimov commented on a change in pull request #3254: [ZEPPELIN-3575] Add 
'Copy Column Name' to table visualisation-table 
URL: https://github.com/apache/zeppelin/pull/3254#discussion_r248650196
 
 

 ##########
 File path: zeppelin-web/src/app/visualization/builtins/visualization-table.js
 ##########
 @@ -256,6 +256,15 @@ export default class TableVisualization extends 
Visualization {
             return this.context.col.colDef.type === TableColumnType.DATE;
           },
         },
+        {
+          title: 'Copy Column Name',
+          action: function() {
+            self.copyStringToClipboard(this.context.col.displayName);
+          },
+          active: function() {
+            self.copyStringToClipboard(this.context.col.displayName);
 
 Review comment:
   Fixed it, but I think that it is better to return false, otherwise this 
option will be highlighted, and user may think that some option is already 
activated. Also I moved this option to the top, I think it will be more 
convenient, WDYT?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to