Fixed
Project:
Views Row SDC
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2026 at 17:54 UTC
Updated:
3 May 2026 at 18:35 UTC
Jump to comment: Most recent
Currently the user needs to select a component from the drop-down list, save the change, then open the Settings pop-up again to see the props and slots for the component.
If they change the selected, component, the props and slots for the original component remain visible until the Settings pop-up is re-opened.
Options form will be more interactive.
None.
New wrapper around Props and Slots drop-downs.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
lostcarpark commentedCurrently I have this working with AJAX, but I have been trying to use HTMX.
With AJAX, I had some trouble getting it to work as it was connecting to the main view form rather than the row popup. This was solved by specifying the AJAX URL using the
views_ui_build_form_url($form_state).Using HTMX, it will replace the props/slots with a blank area, which is not the desired behaviour. I think this also needs
views_ui_build_form_url($form_state), passed into thepostmethod, but I seem to be missing something else.Also working on adding a FunctionalJJavascript test for this.
Comment #5
lostcarpark commentedI now have updates working with both AJAX (MR !6) and HTMX (MR !7).
I was trying to use views_ui_build_form_url to get the URL to fetch the update from, but AJAX expects JSON, while HTMX expects HTML. I've cloned this function into
buildFormUrl()which forces HTML return. This works well for updating the form content, but unlike the AJAX update, the modal form doesn't resize.I have pieced together some JS to resize the form on update, and it's close to working, but has a couple of unintended side effects I'm still working on.
I think the HTMX update is an interesting exercise, but not sure whether it warrants the the extra complexity, and might be better putting on hold until Views updates to use HTMX.
Comment #6
lostcarpark commentedI have parked the HTMX approach for now. It's been an interesting exercise to try to make it work, but I think adding custom JavaScript to handle resizing is something that should be done at the core level to support HTMX for all modals. I have opened #3587968: PP-1 Look at enabling resize of modal when contents update through HTMX to look at this. There is also #2158943: Add a native dialog element to deprecate the jQuery UI dialog to look at moving from JQuery modals to native HTML ones.
The AJAX update works smoothly. However, the
views_ui_build_form_urlis deprecated in 11.4.The replacement is to use
ViewsFormHelperTrait, which provides abuildFormUrl()method. However, I couldn't find a clean way of providing both, so for now I've cloned the method into the plugin class. This passes tests for all versions. When 11.5 releases, I will drop support for 11.3 and remove the cloned function to use the trait.I think we should get this merged and finally get a release out.
Comment #8
lostcarpark commentedMerged and moving to fixed.