SetRelationNtoN priority


I really need the functionality of enabling priority parameter in the SetRelationNtoN method. With this enabling, I need to special UI form of adding elements in the form.
Any help in how to this for Grocery CRUD Enterprise codeigniter 4?

This is an example of the form input I need