Speaking off the top of my head. Not without a custom extension.
The dynamic class is an html attribute that takes a static argument as the class name and a truthy expression as value so there is no way to pass a binding as a class name.
Well, I’ve attempted to mix Alpine.js, but it didn’t play too well:
The problem is, after DMX’s variable update, Alpine doesn’t really know the variable has changed. If I go on inspector tools and manually edit the HTML (e.g.: add a blank space) Alpine then renders stuff correctly:
Let me grab a coffee and I will have a deeper look.
Your issue and setting conditionally multiple classes at once are both shortcomings of the conditional class attribute. The latter has a workaround but I believe yours hasn’t.
Having it in the UI could cause confusion. Say you had a column with class col and then applied the dmx-bind:class with a text colour, you would add the colour but overwrite the column thus losing the layout.