Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-1772

Implement a method to get paragraph ID within any paragraph

    XMLWordPrintableJSON

Details

    Description

      Provide a method like `getParagraphId()` to get the ID for the paragraph from which the method is called.

      One of the use cases is having a function that takes input parameters, including a paragraph ID, to generate D3 plot in the specified paragraph's output.

      The function can be called from any other paragraph with plot parameters and it's paragraph ID. The function can:
      print(s"""%html <div id="container_[PARAGRAPH_ID]"> </div>)

      So calling the function from any paragraph will create a DIV with a unique ID in the paragraph's output without affecting any other paragraphs.

      Attachments

        Activity

          People

            Unassigned Unassigned
            abhinavsood Abhinav Sood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: