-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
In legacy code, supportedLayout is defined in the properties.schema, and determines which layouts are supported by a component, and is an array of strings:
"_supportedLayout": {
"type": "string",
"required": true,
"enum": ["full-width", "half-width", "both"],
"default": "both",
"editorOnly": true
},First thing: this value is set by the developer and never changed, so doesn't really make sense to be in the schema (maybe the bower.json or package.json?).
Second thing: as far as I can tell, this is only used in editorPageComponent view, and converted from the above array into an object with the format { full: true, half: true }. It seems more sensible to define it this way in the first place, as there's no need for the array format AFAIK.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog