fix: add click handler support in simple grid table element
This commit is contained in:
parent
81fa500fb0
commit
f0c0c1b487
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@
|
||||||
% for action in grid.actions:
|
% for action in grid.actions:
|
||||||
<a v-if="props.row._action_url_${action.key}"
|
<a v-if="props.row._action_url_${action.key}"
|
||||||
:href="props.row._action_url_${action.key}"
|
:href="props.row._action_url_${action.key}"
|
||||||
|
% if action.click_handler:
|
||||||
|
@click.prevent="${action.click_handler}"
|
||||||
|
% endif
|
||||||
class="${action.link_class}">
|
class="${action.link_class}">
|
||||||
${action.render_icon_and_label()}
|
${action.render_icon_and_label()}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue