Skip to content

Commit

Permalink
add new snippet - toolbarButtons
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivorius authored and f3l1x committed Sep 13, 2022
1 parent 51af25f commit 55fd8b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/templates/datagrid.latte
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@
{/if}

<div class="datagrid-toolbar" n:if="$control->canHideColumns() || $inlineAdd || $exports || $toolbarButtons">
{snippet toolbarButtons}
<span n:if="$toolbarButtons" n:snippet="toolbar">
{foreach $toolbarButtons as $toolbar_button}{$toolbar_button->renderButton()}{/foreach}
</span>
{/snippet}

<span class="datagrid-exports" n:if="$exports" n:snippet="exports" n:block="exports">
{foreach $exports as $export}{$export->render()}{/foreach}
Expand Down

1 comment on commit 55fd8b4

@PS-CVIS
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The toolbarButtons snippets broke layout with exports and settings buttons. Now toolbar buttons are not in row with exports and settings buttons.

Please sign in to comment.