In some projects, I had to create similar datagrids, but with just a small difference in source (small xPath differences).
From these datagrids, I call the same functions. After a while, it was hard to maintain the order of buttons, which made it kinda messy.
Isn't it an idea to have the ability to make a snippet from these buttons? Or something like a ‘button group’ kind of functionality?