I need add dynamic rows field to my custom widget, which should have three columns: title(text field), color(select field), url(text field). There should also be an add button, and delete buttons for each row. If possible, it would be nice to be able to swap lines. I suppose in widget.xml I have to declare a block type and specify a class, but I don’t understand how the code of this class should look.

  • did you achieved??
    – Jaisa
    Commented Apr 7, 2020 at 17:09
  • unfortunately no(
    – MageDev
    Commented Apr 17, 2020 at 14:41

1 Answer 1


i have used @bbakalov's module from github and it works: https://github.com/bbakalov/Bss_DynamicRows

Hope it serves you!

Update: i have been ansered to my question, which was to add dynamic rows with block (not Ui Components): Add dynamic rows (No UI Component) block, into the custom widget

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.