objectDecorators syntax for cssClasses with space-config

Hi all,
It was just not obvious to me how to to use objectDecorators to inject cssClasses, the manual only shows the decoration set within frontmatter in place, not the space-config case.
cssClasses attribute is a list (hence the plural) and has to be formatted as one.
Not being a JS dev, it took me some time and going through pull request comments on decorations to get to the proper syntax.
Posting it here, for any non JS-savy future users:

objectDecorators:
- where: 'tag = "page" and tags = "holiday"'
  attributes:
    pageDecoration:
      cssClasses: "['christmas-decoration']"
      prefix: "'🎄 '"
3 Likes

Ah. Thanks for that. That is indeed a bit unintuitive. I hadn’t tried doing this yet.