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

Last Updated: 28 October, 2026