If available, add entity id as data attribute to VBO checkbox

Created on 20 July 2023, over 1 year ago
Updated 15 January 2024, 11 months ago

Problem/Motivation

For a project, I need to do some custom stuff to entities that are selected via VBO in a view.
I have a working custom VBO action that adds selected entities to a cart.
However, for this simple action is going to a processing page first overkill.
So I'm developing a custom JS that intervenes if the selected action is 'Add to cart'.
In my custom JS, I need to get all selected entity IDs.

In this case, it would be very easy if the VBO checkboxes include a 'data-entity-id' attribute if it can get the entity from the row.

Feature request
Status

Needs review

Version

4.2

Component

Core

Created by

🇧🇪Belgium flyke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024