I'm trying to template a column to add a href link to a file name. Original: https://primefaces.org/primevue/treetable/templating
The Column:
Code: Select all
<Column field="name" header="Name" :expander="true"></Column>
What I want is the rendering to include the link to the file.
I found this as a potential answer: https://stackoverflow.com/questions/677 ... s-as-links
But I can't make it work for Columns.
My code here looks like this:
Code: Select all
<TreeTable
:value="viewedDirectory"
class="p-treetable-sm"
sortMode="single"
selectionMode="single"
...
>
<Column
field="name"
header="Name">
...
Code: Select all
<a :href="{{ site.apiurl }}/name">{{ name }}</a>
Thank you for any ideas.