Link to edit page in table layout column of pages section

I want to create a new column in a table layout, that you can click to edit the page. Is this possible? I can’t seem to mix html and the kirby tag in the value option.

This is what I have:

trees:
            type: pages
            label: Trees
            layout: table
            text: false
            columns:
              id:
                label: Tree ID
                value: "{{ page.title }}"
             
       

You can set type to HTML

id:
  label: Tree ID
  type: html
  value: "{{ page.title }}"

Might make sense to use a custom page method like

   public function panelLink()
    {
        return Html::link($this->panel()->url(), $this->title());
    }

Then:

id:
  label: Tree ID
  type: html
  value: "{{ page.panelLink }}"

thanks! where does the custom method go? Do I create a plugin?

Sorry, yes, either in a plugin or if you already have a model, you can add the method there.