API Reference > imodeljs-backend > Elements > Element > onSubModelInsert onSubModelInsert MethodProtectedStatic Beta Called when an instance of this class is being sub-modeled by a new Model. 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. Parameter Type Description _arg OnSubModelPropsArg Returns - void Defined in core/backend/src/Element.ts Line 327 Last Updated: 12 June, 2024