Home > @uniformdev/canvas > ParamTypeConfigConventions

ParamTypeConfigConventions interface

Base interface for parameter type configurations that provides common validation properties.

This interface establishes conventions for parameter/field types config objects.

All properties here are OPTIONAL, and only defined for consistency across param types that use similar config functionality.

Signature:

Properties

PropertyModifiersTypeDescription
required?boolean<p>(Optional) Whether an author must enter a value for this property.</p><p>Implementation of the <code>required</code> property is optional (you must set it in the config UI, and also respect it on the component renderer) - custom types that do not need, or use a different meaning for required should create their own custom-named property instead.</p><p>NOTE: setting required to true will cause a UI indication that the parameter is required. Even if not using it for validation, you can choose to configure it to control the UI.</p>