GitHub user AhyoungRyu opened a pull request:

    https://github.com/apache/zeppelin/pull/1750

    [ZEPPELIN-1796] Add 'copy to clipboard' next to the paragraph id

    ### What is this PR for?
    There are lots of use cases that need to know each `Paragraph Id` in 
Zeppelin. 
    e.g. [run paragraph using rest 
api](https://zeppelin.apache.org/docs/0.7.0-SNAPSHOT/rest-api/rest-notebook.html#run-a-paragraph-asynchronously)
 / 
[`z.angularBind`](https://zeppelin.apache.org/docs/0.7.0-SNAPSHOT/displaysystem/front-end-angular.html#basic-usage)
 / [export paragraphs using 
iframe](https://zeppelin.apache.org/docs/0.7.0-SNAPSHOT/manual/publish.html) ...
    
    So I added `Copy to clipboard` btn next the each `Paragraph Id` under 
paragraph setting menu using 
[angular-zeroclipboard](https://github.com/lisposter/angular-zeroclipboard). 
    It'll be useful even if it's small feature :)
    
    ### What type of PR is it?
    Improvement | Feature 
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    [ZEPPELIN-1796](https://issues.apache.org/jira/browse/ZEPPELIN-1796)
    
    ### How should this be tested?
    1. `npm run build` under `zeppelin-web/`
    2. `npm run start` to start dev mode and browse `http://localhost:9000`
    3. click gear icon placed top of the each paragraph -> there must be <img 
width="20px" alt="screen shot 2016-12-13 at 2 43 49 pm" 
src="https://cloud.githubusercontent.com/assets/10060731/21129033/96e56ec4-c142-11e6-9ffd-af75007e1f92.png";>
 btn next to the paragraph id 
    
    4. click that button and paste the paragraph id anywhere to check it's 
copied well or not
    
    ### Screenshots (if appropriate)
    
![copy_pid](https://cloud.githubusercontent.com/assets/10060731/21128863/7ef02008-c141-11e6-8ddd-d2d89fe47a9a.gif)
    
    ### Questions:
    * Does the licenses files need update? no
    * Is there breaking changes for older versions? no 
    * Does this needs documentation? no
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/AhyoungRyu/zeppelin add/copyToClipboard

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/1750.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1750
    
----
commit a01cc4ad342f46b05da547e7f0a7a84a00973093
Author: AhyoungRyu <fbdkdu...@hanmail.net>
Date:   2016-12-13T05:26:18Z

    Add 'copy to clipboard' next to the paragraph id

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to