Skip to main content

@width

The @width decorator is used to mark the property that contains the width of the editor panel for the Collection.Item. This property should be a number that returns the desired width of the panel in pixels.

Decorator type​

Property ℹ️

Applies to​

Decorator signature​

@width

Example​

@width
get width() {
// Specifies the editor panel should be 400 pixels wide.
return 400;
}