onSubModelInsert MethodProtected Static @beta
Called when an instance of this class is being sub-modeled by a new Model. The default implementation rejects the model unless its class is one of allowedSubModelClasses or allowedSubModelClasses returns undefined.
onSubModelInsert(arg: OnSubModelPropsArg): void
@note throw an exception if model should not be inserted
@note this is the class of Element to be sub-modeled.
@note Overrides must call super.onSubModelInsert(arg) to retain inherited class validation.
| Parameter | Type | Description |
|---|---|---|
| arg | OnSubModelPropsArg |
Returns - void
Defined in
- backend/src/Element.ts Line 476
Last Updated: 28 October, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.