IViewDefinitions.NewCustomElementDef method
Namespace: NextDesign.Core
Description
Generates a custom editor element definition for the specified model class.
argument
Name | Type | Description |
---|---|---|
editor | ICustomEditorDefinition | Custom editor definition Null cannot be specified. |
name | string | Custom editor element definition name Null or empty string cannot be specified. |
modelClass | IClass | Model metaclass null cannot be specified. |
elementTypeId | string | Editor element type identifier Null or empty string cannot be specified. |
path | string | Path string of the corresponding metaclass Specify null for elements that do not correspond to the field. The default value is null. |
Return value
Exception
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null is specified for editor When null is specified for name or when an empty string is specified When a character string that cannot be used is specified for name null is specified for modelClass. When specified When null or an empty string is specified for elementTypeId |
Field not found | ExtensionFieldNotFoundException | If the field specified by the path cannot be found |
Not Supported | ExtensionNotSupportedException | If the current edition of the application is not supported |