IViewDefinitions.NewCustomElementDef Method
Namespace: NextDesign.Core
Description
Generates a custom editor element definition for the specified model class.
Arguments
Name | Type | Description |
---|---|---|
editor | ICustomEditorDefinition | Custom editor definition Cannot be null. |
name | string | Custom editor element definition name Cannot be null or an empty string. |
modelClass | IClass | Model metaclass Cannot be null. |
elementTypeId | string | Editor element type identifier Cannot be null or an empty string. |
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 | If null is specified for editor If null or an empty string is specified for name If an unavailable string is specified for name If null is specified for modelClass If 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 compatible |