Skip to content

Commit

Permalink
Remove onElementContentVisibilityChanged, getQuestionsByNames and…
Browse files Browse the repository at this point in the history
… `getPagesByNames` from the docs
  • Loading branch information
RomanTsukanov committed Dec 26, 2024
1 parent 16d3007 commit 6b1a212
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions packages/survey-core/src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import {
MatrixAllowRemoveRowEvent, MatrixDetailPanelVisibleChangedEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent,
MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent,
DynamicPanelGetTabTitleEvent, DynamicPanelCurrentIndexChangedEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent,
GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent,
GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, GetExpressionDisplayValueEvent,
ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ChoicesSearchEvent,
OpenFileChooserEvent, OpenDropdownMenuEvent, ResizeEvent
} from "./survey-events-api";
Expand Down Expand Up @@ -851,10 +851,7 @@ export class SurveyModel extends SurveyElementCore
*/
public onGetMatrixRowActions: EventBase<SurveyModel, GetMatrixRowActionsEvent> = this.addEvent<SurveyModel, GetMatrixRowActionsEvent>();

/**
* An event that is raised after a survey element is [expanded or collapsed](https://surveyjs.io/form-library/documentation/api-reference/question#state).
*/
public onElementContentVisibilityChanged: EventBase<SurveyModel, ElementContentVisibilityChangedEvent> = this.addEvent<SurveyModel, ElementContentVisibilityChangedEvent>();
public onElementContentVisibilityChanged: EventBase<SurveyModel, any> = this.addEvent<SurveyModel, any>();

/**
* An event that is raised before an [Expression](https://surveyjs.io/form-library/documentation/api-reference/expression-model) question displays a value. Use this event to override the display value.
Expand Down Expand Up @@ -5692,13 +5689,6 @@ export class SurveyModel extends SurveyElementCore
}
return null;
}
/**
* Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
* @param names An array of question names.
* @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
* @returns An array of questions with specified names
* @see getAllQuestions
*/
public getQuestionsByNames(
names: string[],
caseInsensitive: boolean = false
Expand Down Expand Up @@ -5740,10 +5730,6 @@ export class SurveyModel extends SurveyElementCore
}
return null;
}
/**
* Returns an array of pages with specified names.
* @param names An array of page names.
*/
public getPagesByNames(names: string[]): PageModel[] {
var result: PageModel[] = [];
if (!names) return result;
Expand Down

0 comments on commit 6b1a212

Please sign in to comment.