@@ -67,14 +67,9 @@ import {
6767 DynamicPanelItemValueChangedEvent , DynamicPanelValueChangedEvent , DynamicPanelValueChangingEvent ,
6868 DynamicPanelGetTabTitleEvent , DynamicPanelCurrentIndexChangedEvent , CheckAnswerCorrectEvent , DragDropAllowEvent , ScrollToTopEvent , GetQuestionTitleActionsEvent ,
6969 GetPanelTitleActionsEvent , GetPageTitleActionsEvent , GetPanelFooterActionsEvent , GetMatrixRowActionsEvent , GetExpressionDisplayValueEvent , CheckSingleInputPerPageModeEvent ,
70- ServerValidateQuestionsEvent , MultipleTextItemAddedEvent , MatrixColumnAddedEvent , GetQuestionDisplayValueEvent , PopupVisibleChangedEvent , ChoicesSearchEvent ,
71- OpenFileChooserEvent , OpenDropdownMenuEvent , ResizeEvent ,
72- GetTitleActionsEventMixin , ProgressTextEvent , ScrollingElementToTopEvent , IsAnswerCorrectEvent ,
73- LoadChoicesFromServerEvent ,
74- ProcessTextValueEvent ,
75- CreateCustomChoiceItemEvent ,
76- MatrixRowDragOverEvent ,
77- ExpressionRunningEvent
70+ GetLoopQuestionsEvent , ServerValidateQuestionsEvent , MultipleTextItemAddedEvent , MatrixColumnAddedEvent , GetQuestionDisplayValueEvent ,
71+ PopupVisibleChangedEvent , ChoicesSearchEvent , OpenFileChooserEvent , OpenDropdownMenuEvent , ResizeEvent , GetTitleActionsEventMixin , ProgressTextEvent , ScrollingElementToTopEvent ,
72+ IsAnswerCorrectEvent , LoadChoicesFromServerEvent , ProcessTextValueEvent , CreateCustomChoiceItemEvent , MatrixRowDragOverEvent , ExpressionRunningEvent
7873} from "./survey-events-api" ;
7974import { QuestionMatrixDropdownModelBase } from "./question_matrixdropdownbase" ;
8075import { QuestionMatrixDynamicModel } from "./question_matrixdynamic" ;
@@ -977,6 +972,7 @@ export class SurveyModel extends SurveyElementCore
977972 public onGetExpressionDisplayValue : EventBase < SurveyModel , GetExpressionDisplayValueEvent > = this . addEvent < SurveyModel , GetExpressionDisplayValueEvent > ( ) ;
978973
979974 public onCheckSingleInputPerPageMode : EventBase < SurveyModel , CheckSingleInputPerPageModeEvent > = this . addEvent < SurveyModel , CheckSingleInputPerPageModeEvent > ( ) ;
975+ public onGetLoopQuestions : EventBase < SurveyModel , GetLoopQuestionsEvent > = this . addEvent < SurveyModel , GetLoopQuestionsEvent > ( ) ;
980976
981977 /**
982978 * An event that is raised after the visibility of a popup is changed.
@@ -4938,6 +4934,10 @@ export class SurveyModel extends SurveyElementCore
49384934 this . onCheckSingleInputPerPageMode . fire ( this , options ) ;
49394935 return options . enabled ;
49404936 }
4937+ public updateNestedSingleQuestions ( question : IQuestion , nestedQuestions : Array < IQuestion > ) : void {
4938+ const options : any = { question : question , nestedQuestions : nestedQuestions } ;
4939+ this . onGetLoopQuestions . fire ( this , options ) ;
4940+ }
49414941 private changeCurrentSingleElementOnVisibilityChanged ( ) : void {
49424942 const el = this . currentSingleElement ;
49434943 if ( ! el || el . isVisible ) return ;
0 commit comments