Skip to content

Commit

Permalink
Add description
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Tsukanov committed Sep 26, 2023
1 parent a50e907 commit 4dc74d2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/question_file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ export class QuestionFileModel extends Question {
target.updateFileNavigator();
} }) pageSize: number;
@property({ defaultValue: false }) containsMultiplyFiles: boolean;
@property() allowCameraAccess: boolean;
/**
* Specifies whether users can capture and upload a photo. Applies only to mobile devices.
* Specifies the source of uploaded files.
*
* Default value: `false`
* Possible values:
*
* - `"file"` (default) - Allows respondents to select a local file.
* - `"camera"` - Allows respondents to capture and upload a photo.
* - `"file-camera"` - Allows respondents to select a local file or capture a photo.
*/
@property() allowCameraAccess: boolean;
@property({ onSet: (val: string, obj: QuestionFileModel) => {
if(!obj.isLoadingFromJson) {
obj.updateCurrentMode();
Expand Down

0 comments on commit 4dc74d2

Please sign in to comment.