Skip to content

Commit

Permalink
Add gravityview/row-added JS-event (#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcasual authored Nov 19, 2024
2 parents 29c8ec0 + c72774b commit ece61e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions assets/js/admin-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@
const $row = $( result?.row );
$row.insertBefore( $add_row );

$( document.body ).trigger(
'gravityview/row-added',
$row,
{
type,
row_type,
zone,
template_id
}
);

window?.gvAdminActions?.initTooltips();
window?.gvAdminActions?.initDroppables( $row );
} ) );
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Beautifully display your Gravity Forms entries. Learn more on [gravitykit.com](h
__Developer Updates:__

* Added: `gk/gravityview/template/options` filter to allow programmatically modifying Field settings in the View editor.
* Added: `gravityview/row-added` JavaScript event when a new row is added to a Widget/Field area.

= 2.31.1 on November 8, 2024 =

Expand Down

0 comments on commit ece61e5

Please sign in to comment.