madec-project / ezvis

A dashboard to visualize a synthesis on a structured corpus, using several charts (pies, histograms, ...)
https://ezvis.readthedocs.org/
17 stars 5 forks source link

How to create a link in the documents table ? #97

Open gmella opened 6 years ago

gmella commented 6 years ago

I display some data with elements such as DOI which could be used to build an hyperlink in the table of data. What is the best way to implement such functionnality ?

Regards, Guillaume

parmentf commented 6 years ago

A colleague used this way:

    "$doi": {
      "path": "content.json.Di",
      "label": "doi"
    },
    "$doiurl": {
      "visible": true,
      "label": "Doi",
      "compute": "doi ? \"<a href='http://dx.doi.org/\" + doi + \"'>\" + doi + \"</a>\" :  \"\""
    },