I have create my first plugin with builder (table, model, controller, ecc) and the list of items in the database is display in the backend menu. How can I add the "button column" in this elements ? Because in the controllers folder I only have this in the index.htm file: <?= $this->listRender() ?>
Thanks for support.
browse with your editor to:
Add there the columns you wish to add
There are no way to do that in Builder (yet). So you should manually add it to your
ok, but how can populate the column? I would a different button for each element of the list. The final result is a button which delete the element.
You can add an partial column type with an button for each action you desire.
like in you're columns.yaml
label: '' type: partial path: ~/plugins/author/plugin/models/modelt/_link_partial.htm clickable: false
sortable: false Then create a partial _link_partial.htm with:
<a href="action/update/<?= e($record->id) ?>" class="btn btn-primary btn-sm">Update</a>
1-5 of 5