A question about the documentation

jbudd
Thu, 17 Oct 2024 22:00:55 +0000
General

In the documentation for dynamic properties, it says

Updating Classes

If we consider an example with a ui-button, you can send the following msg to the button itself:

json

msg = {
    "ui_update": {
        "class": "my-class"
    }
}

...
Note also that msg.class injection is still supported for legacy reasons, but it is recommended to use ui_update.class where possible.

Can anyone explain why it deprecates msg.class?

4 posts - 4 participants