Child pages
  • WebLayouts

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: SVY-12128 Web Layouts specs - check if one of "excludes" or "contains" is present

...

We can also disallow adding any component with "excludes": ["component"]. However, if we want to allow all components but a specific one, then we need to use the "contains" property instead of "excludes", in which we enumerate all possible components that this layout accepts.

 

Info
titleMissing "contains" and "excludes"

If both contains and excludes properties are missing from the layout spec file, then that layout will allow components as children.

More Examples on "contains" and "excludes" properties

...