Skip to content

Commit

Permalink
Update the onOpenFileChooser description
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Nov 19, 2024
1 parent 91e647d commit fa3fa3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/survey-core/src/survey-events-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,16 +526,16 @@ export interface OpenFileChooserEvent {
*/
input: HTMLInputElement;
/**
* A survey element (question, panel, page, or survey) or a theme JSON schema for which this event is raised.
* A question for which this event is raised.
*/
element: Base;
/**
* The type of the element passed as the `options.element` parameter.\
* Possible values: `"theme"`, `"header"`, or any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method.
* Possible values: any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method.
*/
elementType: String;
/**
* The name of the survey element property or theme property for which files are being selected.
* The name of the survey element property for which files are being selected.
*/
propertyName: String;
/**
Expand Down
5 changes: 2 additions & 3 deletions packages/survey-core/src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,8 @@ export class SurveyModel extends SurveyElementCore
*/
public onGetResult: EventBase<SurveyModel, GetResultEvent> = this.addEvent<SurveyModel, GetResultEvent>();
/**
* An event that is raised when Survey Creator opens a dialog window for users to select files.
* @see onUploadFile
* @see uploadFiles
* An event that is raised when a respondent opens a dialog window to select files.
* @see chooseFiles
*/
public onOpenFileChooser: EventBase<SurveyModel, OpenFileChooserEvent> = this.addEvent<SurveyModel, OpenFileChooserEvent>();
/**
Expand Down

0 comments on commit fa3fa3c

Please sign in to comment.