liuxunorg edited a comment on issue #3273: [ZEPPELIN-3920] Paragraph support 
custom menu display with multiple URL link
URL: https://github.com/apache/zeppelin/pull/3273#issuecomment-458102309
 
 
   **Complete custom single-menu & multi-menu test.**
   
   Custom single-menu test code:
   ```
       Map<String, String> infos = new java.util.HashMap<String, String>();
       infos.put("jobUrl", "jobUrl");
       infos.put("label", "SPARK JOB");
       infos.put("tooltip", "View in Spark web UI");
       infos.put("noteId", context.getNoteId());
       infos.put("paraId", context.getParagraphId());
       context.getIntpEventClient().onParaInfosReceived(infos);
   ```
   ![alt 
text](https://github.com/liuxunorg/images/blob/master/zeppelin/custom-single-menu.png?raw=true
 "custom-single-menu.png")
   
    Custom multi-menu test code:
   ```
       Map<String, String> infos = new java.util.HashMap<String, String>();
       infos.put("jobUrl", "jobUrl");
       infos.put("label", "SPARK JOB");
       infos.put("jobLabel", "Yarn log");
       infos.put("tooltip", "View in Spark web UI");
       infos.put("noteId", context.getNoteId());
       infos.put("paraId", context.getParagraphId());
       context.getIntpEventClient().onParaInfosReceived(infos);
   
       Map<String, String> infos2 = new java.util.HashMap<String, String>();
       infos2.put("jobUrl", "jobUrl");
       infos2.put("label", "SPARK JOB");
       infos2.put("tooltip", "View in Spark web UI");
       infos2.put("noteId", context.getNoteId());
       infos2.put("paraId", context.getParagraphId());
       context.getIntpEventClient().onParaInfosReceived(infos2);
   
       Map<String, String> infos3 = new java.util.HashMap<String, String>();
       infos3.put("jobUrl", "jobUrl");
       infos3.put("label", "SPARK JOB");
       infos3.put("tooltip", "View in Spark web UI");
       infos3.put("noteId", context.getNoteId());
       infos3.put("paraId", context.getParagraphId());
       context.getIntpEventClient().onParaInfosReceived(infos3);
   ```
   ![alt 
text](https://github.com/liuxunorg/images/blob/master/zeppelin/custom-multi-menu.png?raw=true
 "custom-multi-menu.png")
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to