onInsertElement MethodProtected Static @beta
Called before a prospective Element is to be inserted into an instance of a Model of this class.
onInsertElement(_arg: OnElementInModelPropsArg): void
@note throw an exception to disallow the insert
@note If you override this method, you must call super.
@note  this is the class of the Model to hold the element
| Parameter | Type | Description | 
|---|---|---|
| _arg | OnElementInModelPropsArg | 
Returns - void
Defined in
- core/backend/src/Model.ts Line 212
Last Updated: 30 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.