Skip to content

Commit

Permalink
Describe the onMatrixDetailPanelVisibleChanged event
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Mar 15, 2024
1 parent 011576e commit 4ac0eaa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/survey-events-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,15 +711,21 @@ export interface MatrixAllowRemoveRowEvent extends MatrixDynamicQuestionEventMix
}
export interface MatrixDetailPanelVisibleChangedEvent extends MatrixDropdownQuestionEventMixin {
/**
* A matrix row for which the event is raised.
* A matrix row to which the detail section belongs.
*/
row: MatrixDropdownRowModelBase;
/**
* A zero-based row index.
*/
rowIndex: number;
isShowing: boolean;
/**
* A [PanelModel](https://surveyjs.io/form-library/documentation/panelmodel) that represents the detail section.
*/
detailPanel: PanelModel;
/**
* Indicates whether the detail section is visible now.
*/
isShowing: boolean;
}

export interface MatrixCellCreatingBaseEvent extends MatrixDropdownQuestionEventMixin {
Expand Down
3 changes: 3 additions & 0 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,9 @@ export class SurveyModel extends SurveyElementCore
* This event is obsolete. Use the [`onMatrixRenderRemoveButton`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
*/
public onMatrixAllowRemoveRow: EventBase<SurveyModel, MatrixAllowRemoveRowEvent> = this.onMatrixRenderRemoveButton;
/**
* An event that is raised after the visibility of an [expandable detail section](https://surveyjs.io/form-library/examples/add-expandable-details-section-under-matrix-rows/) is changed. This event can be raised for [Multi-Select](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list) and [Dynamic Matrix](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model) questions.
*/
public onMatrixDetailPanelVisibleChanged: EventBase<SurveyModel, MatrixDetailPanelVisibleChangedEvent> = this.addEvent<SurveyModel, MatrixDetailPanelVisibleChangedEvent >();
/**
* An event that is raised before a cell in a [Multi-Select Matrix](https://surveyjs.io/form-library/examples/questiontype-matrixdropdown/) or [Dynamic Matrix](https://surveyjs.io/form-library/examples/questiontype-matrixdynamic/) is created. Use this event to change the type of individual matrix cells.
Expand Down

0 comments on commit 4ac0eaa

Please sign in to comment.