Skip to content

feat: add data-item-custom support in JGrid action#47690

Open
jiteshkhatri11 wants to merge 2 commits into
joomla:6.2-devfrom
jiteshkhatri11:feature/jgrid-custom-data-clean
Open

feat: add data-item-custom support in JGrid action#47690
jiteshkhatri11 wants to merge 2 commits into
joomla:6.2-devfrom
jiteshkhatri11:feature/jgrid-custom-data-clean

Conversation

@jiteshkhatri11

Copy link
Copy Markdown

Pull Request resolves # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

Add support for a data-item-custom attribute in JGrid action buttons through an optional custom key in the options array. This allows developers to attach extra metadata to grid action buttons for custom JavaScript handling.

Testing Instructions

Pass a custom key in the options array when calling JGrid::action() and verify the data-item-custom attribute appears in the rendered HTML output.

Actual result BEFORE applying this Pull Request

JGrid action buttons do not support custom data attributes.

Expected result AFTER applying this Pull Request

JGrid action buttons render a data-item-custom attribute when a custom key is provided in the options array.

Link to documentations

  • No documentation changes for guide.joomla.org needed
  • No documentation changes for manual.joomla.org needed

@brianteeman

Copy link
Copy Markdown
Contributor

will you please close all the other attempted PR for this exact same issue

@QuyTon QuyTon added the Feature label Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants