survey-react 1.9.50 → 1.9.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/defaultV2.css +26 -8
- package/defaultV2.min.css +2 -2
- package/modern.css +7 -3
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +9 -2
- package/survey.min.css +2 -2
- package/survey.react.d.ts +186 -146
- package/survey.react.js +992 -695
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Type definition for Survey JavaScript library for React v1.9.
|
2
|
+
* Type definition for Survey JavaScript library for React v1.9.51
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -819,7 +819,7 @@ export declare class Base {
|
|
819
819
|
/*
|
820
820
|
* Returns `true` if the object is included in a survey.
|
821
821
|
*
|
822
|
-
* This
|
822
|
+
* This property may return `false`, for example, when you [create a survey model dynamically](https://surveyjs.io/form-library/documentation/design-survey-create-a-simple-survey#create-or-change-a-survey-model-dynamically).
|
823
823
|
*/
|
824
824
|
get inSurvey(): boolean;
|
825
825
|
get bindings(): Bindings;
|
@@ -872,11 +872,6 @@ export declare class Base {
|
|
872
872
|
get isEditingSurveyElement(): boolean;
|
873
873
|
iteratePropertiesHash(func: (hash: any, key: any) => void): void;
|
874
874
|
/*
|
875
|
-
* set property value and before check if new property value is correct by calling JsonProperty onSettingValue function
|
876
|
-
* If onSettingValue is not set in declaration, then this function works as `setPropertyValue`.
|
877
|
-
*/
|
878
|
-
checkAndSetPropertyValue(name: string, val: any): void;
|
879
|
-
/*
|
880
875
|
* Assigns a new value to a specified property.
|
881
876
|
*/
|
882
877
|
setPropertyValue(name: string, val: any): void;
|
@@ -1130,6 +1125,12 @@ export declare class ExpressionRunnerBase {
|
|
1130
1125
|
protected runCore(values: any, properties?: any): any;
|
1131
1126
|
protected doOnComplete(res: any): void;
|
1132
1127
|
}
|
1128
|
+
export declare class FileLoader {
|
1129
|
+
constructor(fileQuestion: QuestionFileModel, callback: (status: string, files: any) => void);
|
1130
|
+
loaded: any;
|
1131
|
+
load(files: any): void;
|
1132
|
+
dispose(): void;
|
1133
|
+
}
|
1133
1134
|
export declare class FunctionFactory {
|
1134
1135
|
static Instance: FunctionFactory;
|
1135
1136
|
functionHash: any;
|
@@ -1422,11 +1423,13 @@ export declare class ResponsivityManager {
|
|
1422
1423
|
separatorSize: number;
|
1423
1424
|
separatorAddConst: number;
|
1424
1425
|
paddingSizeConst: number;
|
1426
|
+
dotsSizeConst: number;
|
1425
1427
|
protected recalcMinDimensionConst: boolean;
|
1426
1428
|
getComputedStyle: (elt: JSX.Element) => any;
|
1427
1429
|
protected getDimensions(element: any): IDimensions;
|
1428
1430
|
protected getAvailableSpace(): number;
|
1429
1431
|
protected calcItemSize(item: any): number;
|
1432
|
+
protected calcActionDimensions(currentAction: Action, item: any): void;
|
1430
1433
|
dispose(): void;
|
1431
1434
|
}
|
1432
1435
|
export declare class Skeleton extends React.Component<any, any> {
|
@@ -2016,6 +2019,8 @@ export declare class DropdownListModel extends Base {
|
|
2016
2019
|
protected getAvailableItems(): Array<Action>;
|
2017
2020
|
protected createListModel(): ListModel;
|
2018
2021
|
protected resetFilterString(): void;
|
2022
|
+
protected onSetFilterString(): void;
|
2023
|
+
setInputHasValue(newValue: boolean): void;
|
2019
2024
|
searchEnabled: boolean;
|
2020
2025
|
filterString: string;
|
2021
2026
|
get popupModel(): any;
|
@@ -2714,6 +2719,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
2714
2719
|
export declare class PopupBaseViewModel extends Base {
|
2715
2720
|
constructor(model: any, targetElement?: any);
|
2716
2721
|
targetElement: any;
|
2722
|
+
isAutoScroll: boolean;
|
2717
2723
|
prevActiveElement: any;
|
2718
2724
|
scrollEventCallBack: any;
|
2719
2725
|
top: string;
|
@@ -3314,6 +3320,7 @@ export declare class VerticalResponsivityManager extends ResponsivityManager {
|
|
3314
3320
|
protected getDimensions(): IDimensions;
|
3315
3321
|
protected getAvailableSpace(): number;
|
3316
3322
|
protected calcItemSize(item: any): number;
|
3323
|
+
protected calcActionDimensions(currentAction: Action, item: any): void;
|
3317
3324
|
}
|
3318
3325
|
export declare class WebRequestEmptyError extends SurveyError {
|
3319
3326
|
constructor(text: string, errorOwner?: ISurveyErrorOwner);
|
@@ -3458,6 +3465,7 @@ export declare class DropdownMultiSelectListModel extends DropdownListModel {
|
|
3458
3465
|
closeOnSelect: boolean;
|
3459
3466
|
protected override: any;
|
3460
3467
|
createListModel(): MultiSelectListModel;
|
3468
|
+
protected onSetFilterString(): void;
|
3461
3469
|
selectAllItems(): void;
|
3462
3470
|
selectNoneItem(): void;
|
3463
3471
|
selectItem(id: string): void;
|
@@ -3712,8 +3720,9 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3712
3720
|
*
|
3713
3721
|
* Possible values:
|
3714
3722
|
*
|
3715
|
-
* - `"
|
3716
|
-
* - `"expanded"` - The survey element is displayed in full.
|
3723
|
+
* - `"default"` (default) - The survey element is displayed in full and cannot be collapsed in the UI.
|
3724
|
+
* - `"expanded"` - The survey element is displayed in full and can be collapsed in the UI.
|
3725
|
+
* - `"collapsed"` - The survey element displays only `title` and `description` and can be expanded in the UI.
|
3717
3726
|
*/
|
3718
3727
|
get state(): string;
|
3719
3728
|
set state(val: string);
|
@@ -3772,11 +3781,15 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3772
3781
|
get areInvisibleElementsShowing(): boolean;
|
3773
3782
|
get isVisible(): boolean;
|
3774
3783
|
/*
|
3775
|
-
* Returns `true` if the survey element or its parent element is read-only.
|
3784
|
+
* Returns `true` if the survey element or its parent element is read-only.
|
3785
|
+
*
|
3786
|
+
* If you want to switch a survey element to the read-only state based on a condition, specify the [`enableIf`](https://surveyjs.io/form-library/documentation/question#enableIf) property. Refer to the following help topic for information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
3776
3787
|
*/
|
3777
3788
|
get isReadOnly(): boolean;
|
3778
3789
|
/*
|
3779
|
-
* Makes the survey element read-only.
|
3790
|
+
* Makes the survey element read-only.
|
3791
|
+
*
|
3792
|
+
* If you want to switch a survey element to the read-only state based on a condition, specify the [`enableIf`](https://surveyjs.io/form-library/documentation/question#enableIf) property. Refer to the following help topic for information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
3780
3793
|
*/
|
3781
3794
|
get readOnly(): boolean;
|
3782
3795
|
set readOnly(val: boolean);
|
@@ -3813,7 +3826,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3813
3826
|
set errors(val: any);
|
3814
3827
|
hasVisibleErrors: boolean;
|
3815
3828
|
/*
|
3816
|
-
* Returns `true` if the survey element or its child elements have
|
3829
|
+
* Returns `true` if the survey element or its child elements have validation errors.
|
3817
3830
|
*
|
3818
3831
|
* This property contains the result of the most recent validation. This result may be outdated. Call the `hasErrors` method to get an up-to-date value.
|
3819
3832
|
*/
|
@@ -3843,7 +3856,14 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3843
3856
|
delete(): void;
|
3844
3857
|
locOwner: ILocalizableOwner;
|
3845
3858
|
/*
|
3846
|
-
* Returns the survey's [locale](https://surveyjs.io/form-library/documentation/surveymodel#locale).
|
3859
|
+
* Returns the survey's [locale](https://surveyjs.io/form-library/documentation/surveymodel#locale).
|
3860
|
+
*
|
3861
|
+
* If a default locale is used, this method returns an empty string. To get the applied locale in this case, use the following code:
|
3862
|
+
*
|
3863
|
+
* ```js
|
3864
|
+
* import { surveyLocalization } from 'survey-core';
|
3865
|
+
* const defaultLocale = surveyLocalization.defaultLocale;
|
3866
|
+
* ```
|
3847
3867
|
*/
|
3848
3868
|
getLocale(): string;
|
3849
3869
|
getMarkdownHtml(text: string, name: string): string;
|
@@ -3927,7 +3947,7 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
3927
3947
|
protected renderElement(): JSX.Element;
|
3928
3948
|
}
|
3929
3949
|
/*
|
3930
|
-
* The `
|
3950
|
+
* The `SurveyModel` object contains properties and methods that allow you to control the survey and access its elements.
|
3931
3951
|
*/
|
3932
3952
|
export declare class SurveyModel extends SurveyElementCore implements ISurvey, ISurveyData, ISurveyImpl, ISurveyTriggerOwner, ISurveyErrorOwner, ISurveyTimerText {
|
3933
3953
|
constructor(jsonObj?: any, renderedElement?: any);
|
@@ -3964,12 +3984,15 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3964
3984
|
onCompleting: EventBase<SurveyModel>;
|
3965
3985
|
/*
|
3966
3986
|
* The event is fired after a user clicks the 'Complete' button and finishes a survey. Use this event to send the survey data to your web server.
|
3987
|
+
*
|
3967
3988
|
* - `sender` - the survey object that fires the event.
|
3968
3989
|
* - `options.showDataSaving(text)` - call this method to show that the survey is saving survey data on your server. The `text` is an optional parameter to show a custom message instead of default.
|
3969
3990
|
* - `options.showDataSavingError(text)` - call this method to show that an error occurred while saving the data on your server. If you want to show a custom error, use an optional `text` parameter.
|
3970
3991
|
* - `options.showDataSavingSuccess(text)` - call this method to show that the data was successfully saved on the server.
|
3971
3992
|
* - `options.showDataSavingClear` - call this method to hide the text about the saving progress.
|
3972
3993
|
* - `options.isCompleteOnTrigger` - returns true if the survey is completed on "complete" trigger.
|
3994
|
+
*
|
3995
|
+
* > NOTE: Do not disable the [`showCompletedPage`](https://surveyjs.io/form-library/documentation/surveymodel#showCompletedPage) property if you call one of the `options.showDataSaving...` methods described above. This is required because the UI that indicates data saving progress is integrated into the Complete page. If you hide the Complete page, the UI also becomes invisible.
|
3973
3996
|
*/
|
3974
3997
|
onComplete: EventBase<SurveyModel>;
|
3975
3998
|
/*
|
@@ -5000,9 +5023,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5000
5023
|
get questionTitlePattern(): string;
|
5001
5024
|
set questionTitlePattern(val: string);
|
5002
5025
|
getQuestionTitlePatternOptions(): Array<any>;
|
5003
|
-
/*
|
5004
|
-
* Gets or sets a question title template. Obsolete, please use questionTitlePattern
|
5005
|
-
*/
|
5006
5026
|
get questionTitleTemplate(): string;
|
5007
5027
|
set questionTitleTemplate(val: string);
|
5008
5028
|
get locQuestionTitleTemplate(): LocalizableString;
|
@@ -5056,15 +5076,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5056
5076
|
*/
|
5057
5077
|
get processedTitle(): string;
|
5058
5078
|
/*
|
5059
|
-
* Gets or sets
|
5060
|
-
*
|
5061
|
-
* The following options are available:
|
5079
|
+
* Gets or sets question title location relative to the input field: `"top"`, `"bottom"`, or `"left"`.
|
5062
5080
|
*
|
5063
|
-
*
|
5064
|
-
* - `left` - show a question title to left
|
5065
|
-
* - `top` - show a question title to top.
|
5081
|
+
* > NOTE: Certain question types (Matrix, Multiple Text) do not support the `"left"` value. For them, the `"top"` value is used.
|
5066
5082
|
*
|
5067
|
-
*
|
5083
|
+
* You can override this setting if you specify the `questionTitleLocation` property for an [individual page](https://surveyjs.io/form-library/documentation/pagemodel#questionTitleLocation) or [panel](https://surveyjs.io/form-library/documentation/panelmodel#questionTitleLocation) or set the `titleLocation` property for a [specific question](https://surveyjs.io/form-library/documentation/question#titleLocation).
|
5068
5084
|
*/
|
5069
5085
|
get questionTitleLocation(): string;
|
5070
5086
|
set questionTitleLocation(val: string);
|
@@ -5117,11 +5133,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5117
5133
|
get isEditingSurveyElement(): boolean;
|
5118
5134
|
getAllValues(): any;
|
5119
5135
|
/*
|
5120
|
-
* Returns survey
|
5136
|
+
* Returns survey results as an array of objects in which the question name, title, value, and other parameters are stored as individual properties.
|
5121
5137
|
*
|
5122
|
-
*
|
5138
|
+
* If a question can have more than one value (Matrix, Multiple Text), its object enables the `isNode` flag and stores information about these values in the `data` property. Refer to the following help topic for more information: [Access Full Survey Results](https://surveyjs.io/form-library/documentation/handle-survey-results-access#access-full-survey-results).
|
5123
5139
|
*
|
5124
|
-
*
|
5140
|
+
* If you want to skip empty answers, pass an object with the `includeEmpty` property set to `false`.
|
5125
5141
|
*/
|
5126
5142
|
getPlainData(options?: any): any;
|
5127
5143
|
getFilteredValues(): any;
|
@@ -5741,6 +5757,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5741
5757
|
*/
|
5742
5758
|
get width(): string;
|
5743
5759
|
set width(val: string);
|
5760
|
+
get renderedWidth(): string;
|
5744
5761
|
get timerInfoText(): string;
|
5745
5762
|
get timerModel(): SurveyTimerModel;
|
5746
5763
|
/*
|
@@ -6196,7 +6213,8 @@ export declare class UrlConditionItem extends ExpressionItem {
|
|
6196
6213
|
}
|
6197
6214
|
export declare class Variable extends Const {
|
6198
6215
|
constructor(variableName: string);
|
6199
|
-
static DisableConversionChar: string;
|
6216
|
+
static get DisableConversionChar(): string;
|
6217
|
+
static set DisableConversionChar(val: string);
|
6200
6218
|
valueInfo: any;
|
6201
6219
|
useValueAsItIs: boolean;
|
6202
6220
|
getType(): string;
|
@@ -6525,10 +6543,13 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6525
6543
|
protected isReadyValue: boolean;
|
6526
6544
|
commentElement: any;
|
6527
6545
|
/*
|
6528
|
-
*
|
6529
|
-
*
|
6530
|
-
*
|
6531
|
-
*
|
6546
|
+
* An event that is raised when the question's ready state has changed (expressions are evaluated, choices are loaded from a web resource specified by the `choicesByUrl` property, etc.).
|
6547
|
+
*
|
6548
|
+
* Parameters:
|
6549
|
+
*
|
6550
|
+
* - `sender` - A survey that contains the question whose ready state has changed.
|
6551
|
+
* - `options.isReady` - A Boolean value that indicates whether the question is ready.
|
6552
|
+
* - `options.oldIsReady` - A Boolean value that indicates the previous ready state.
|
6532
6553
|
*/
|
6533
6554
|
onReadyChanged: EventBase<Question>;
|
6534
6555
|
isReadOnlyRenderDiv(): boolean;
|
@@ -6537,29 +6558,21 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6537
6558
|
getSurvey(live?: boolean): ISurvey;
|
6538
6559
|
getValueName(): string;
|
6539
6560
|
/*
|
6540
|
-
*
|
6541
|
-
*
|
6542
|
-
*
|
6543
|
-
* In this case if you set the question.name property to 'x.y' then the valueName becomes 'x y'.
|
6544
|
-
* Please note, this property is hidden for questions without input, for example html question.
|
6561
|
+
* Specifies an object property that should store the question value.
|
6562
|
+
*
|
6563
|
+
* Refer to the [Merge Question Values](https://surveyjs.io/form-library/documentation/design-survey-merge-question-values) help topic for more information.
|
6545
6564
|
*/
|
6546
6565
|
get valueName(): string;
|
6547
6566
|
set valueName(val: string);
|
6548
6567
|
protected onValueNameChanged(oldValue: string): void;
|
6549
6568
|
protected onNameChanged(oldValue: string): void;
|
6550
6569
|
get isReady(): boolean;
|
6551
|
-
/*
|
6552
|
-
* A11Y properties
|
6553
|
-
*/
|
6554
6570
|
get ariaRequired(): "true" | "false";
|
6555
6571
|
get ariaInvalid(): "true" | "false";
|
6556
6572
|
get ariaDescribedBy(): string;
|
6557
|
-
/*
|
6558
|
-
* Get is question ready to use
|
6559
|
-
*/
|
6560
6573
|
choicesLoaded(): void;
|
6561
6574
|
/*
|
6562
|
-
*
|
6575
|
+
* Returns a page to which the question belongs and allows you to move this question to a different page.
|
6563
6576
|
*/
|
6564
6577
|
get page(): IPage;
|
6565
6578
|
set page(val: IPage);
|
@@ -6569,25 +6582,36 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6569
6582
|
getLayoutType(): string;
|
6570
6583
|
isLayoutTypeSupported(layoutType: string): boolean;
|
6571
6584
|
/*
|
6572
|
-
*
|
6585
|
+
* Gets or sets question visibility.
|
6586
|
+
*
|
6587
|
+
* If you want to display or hide a question based on a condition, specify the [`visibleIf`](https://surveyjs.io/form-library/documentation/question#visibleIf) property. Refer to the following help topic for information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
6573
6588
|
*/
|
6574
6589
|
get visible(): boolean;
|
6575
6590
|
set visible(val: boolean);
|
6576
6591
|
protected onVisibleChanged(): void;
|
6577
6592
|
/*
|
6578
|
-
*
|
6579
|
-
*
|
6593
|
+
* Specifies whether to use display names for question values interpolated in the title. To interpolate question values, use curly brackets (`{}`).
|
6594
|
+
*
|
6595
|
+
* This property is useful when interpolated question values have both the `value` and `text` properties.
|
6596
|
+
*
|
6597
|
+
* Default value: `true`
|
6580
6598
|
*/
|
6581
6599
|
get useDisplayValuesInTitle(): boolean;
|
6582
6600
|
set useDisplayValuesInTitle(val: boolean);
|
6583
6601
|
protected getUseDisplayValuesInTitle(): boolean;
|
6584
6602
|
/*
|
6585
|
-
*
|
6603
|
+
* A Boolean expression. If it evaluates to `false`, this question becomes hidden.
|
6604
|
+
*
|
6605
|
+
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
6606
|
+
*
|
6607
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
6586
6608
|
*/
|
6587
6609
|
get visibleIf(): string;
|
6588
6610
|
set visibleIf(val: string);
|
6589
6611
|
/*
|
6590
|
-
* Returns true if the question is visible or survey is in design mode
|
6612
|
+
* Returns `true` if the question is visible or the survey is currently in design mode.
|
6613
|
+
*
|
6614
|
+
* If you want to display or hide a question based on a condition, specify the [`visibleIf`](https://surveyjs.io/form-library/documentation/question#visibleIf) property. Refer to the following help topic for information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
6591
6615
|
*/
|
6592
6616
|
get isVisible(): boolean;
|
6593
6617
|
/*
|
@@ -6596,12 +6620,14 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6596
6620
|
*/
|
6597
6621
|
get visibleIndex(): number;
|
6598
6622
|
/*
|
6599
|
-
*
|
6623
|
+
* Hides the question number from the title and excludes the question from numbering.
|
6624
|
+
*
|
6625
|
+
* If you want to disable question numbering in the entire survey, set SurveyModel's `showQuestionNumbers` property to `false`.
|
6600
6626
|
*/
|
6601
6627
|
get hideNumber(): boolean;
|
6602
6628
|
set hideNumber(val: boolean);
|
6603
6629
|
/*
|
6604
|
-
* Returns true if the question
|
6630
|
+
* Returns `true` if the question can display its title to the left of the input field.
|
6605
6631
|
*/
|
6606
6632
|
get isAllowTitleLeft(): boolean;
|
6607
6633
|
/*
|
@@ -6630,40 +6656,48 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6630
6656
|
*/
|
6631
6657
|
getType(): string;
|
6632
6658
|
get isQuestion(): boolean;
|
6633
|
-
/*
|
6634
|
-
* Move question to a new container Page/Panel. Add as a last element if insertBefore parameter is not used or inserted into the given index,
|
6635
|
-
* if insert parameter is number, or before the given element, if the insertBefore parameter is a question or panel
|
6636
|
-
*/
|
6637
6659
|
moveTo(container: IPanel, insertBefore?: any): boolean;
|
6638
6660
|
getProgressInfo(): IProgressInfo;
|
6639
6661
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
6640
6662
|
/*
|
6641
|
-
*
|
6663
|
+
* Returns a survey element (panel or page) that contains the question and allows you to move this question to a different survey element.
|
6642
6664
|
*/
|
6643
6665
|
get parent(): IPanel;
|
6644
6666
|
set parent(val: IPanel);
|
6645
6667
|
parentQuestionValue: Question;
|
6646
6668
|
/*
|
6647
|
-
* A
|
6648
|
-
*
|
6669
|
+
* A Dynamic Panel, Dynamic Matrix, or Dropdown Matrix that includes the current question.
|
6670
|
+
*
|
6671
|
+
* This property is `null` for standalone questions.
|
6649
6672
|
*/
|
6650
6673
|
get parentQuestion(): Question;
|
6651
6674
|
setParentQuestion(val: Question): void;
|
6652
6675
|
protected onParentQuestionChanged(): void;
|
6653
6676
|
protected onParentChanged(): void;
|
6654
6677
|
/*
|
6655
|
-
* Returns false if the question
|
6678
|
+
* Returns `false` if the `titleLocation` property is set to `"hidden"` or if the question cannot have a title (for example, an [HTML](https://surveyjs.io/form-library/documentation/questionhtmlmodel) question).
|
6679
|
+
*
|
6680
|
+
* If the `title` property is `undefined` or set to an empty string, the `hasTitle` property returns `true`, because the question uses its `name` as a title in this case.
|
6656
6681
|
*/
|
6657
6682
|
get hasTitle(): boolean;
|
6658
6683
|
/*
|
6659
|
-
*
|
6660
|
-
*
|
6684
|
+
* Sets question title location relative to the input field. Overrides the `questionTitleLocation` property specified for the question's container (survey, page, or panel).
|
6685
|
+
*
|
6686
|
+
* Possible values:
|
6687
|
+
*
|
6688
|
+
* - `"default"` - Inherits the setting from the `questionTitleLocation` property specified for the question's container.
|
6689
|
+
* - `"top"` - Displays the title above the input field.
|
6690
|
+
* - `"bottom"` - Displays the title below the input field.
|
6691
|
+
* - `"left"` - Displays the title to the left of the input field.
|
6692
|
+
* - `"hidden"` - Hides the question title.
|
6693
|
+
*
|
6694
|
+
* > NOTE: Certain question types (Matrix, Multiple Text) do not support the `"left"` value. For them, the `"top"` value is used.
|
6661
6695
|
*/
|
6662
6696
|
get titleLocation(): string;
|
6663
6697
|
set titleLocation(val: string);
|
6664
6698
|
getTitleOwner(): ITitleOwner;
|
6665
6699
|
/*
|
6666
|
-
*
|
6700
|
+
* Returns title location calculated based on the question's `titleLocation` property and the `questionTitleLocation` property of the question's containers (survey, page, or panel).
|
6667
6701
|
*/
|
6668
6702
|
getTitleLocation(): string;
|
6669
6703
|
protected getTitleLocationCore(): string;
|
@@ -6673,19 +6707,24 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6673
6707
|
get hasTitleOnLeftTop(): boolean;
|
6674
6708
|
get errorLocation(): string;
|
6675
6709
|
/*
|
6676
|
-
* Returns false if the question
|
6710
|
+
* Returns `false` if the question has no input fields ([HTML](https://surveyjs.io/form-library/documentation/questionhtmlmodel), [Image](https://surveyjs.io/form-library/documentation/questionimagemodel), and similar question types).
|
6677
6711
|
*/
|
6678
6712
|
get hasInput(): boolean;
|
6679
6713
|
/*
|
6680
|
-
* Returns false if the question
|
6714
|
+
* Returns `false` if the question has no input fields ([HTML](https://surveyjs.io/form-library/documentation/questionhtmlmodel), [Image](https://surveyjs.io/form-library/documentation/questionimagemodel)) or has multiple input fields ([Matrix](https://surveyjs.io/form-library/documentation/questionmatrixmodel), [Multiple Text](https://surveyjs.io/form-library/documentation/questionmultipletextmodel)).
|
6681
6715
|
*/
|
6682
6716
|
get hasSingleInput(): boolean;
|
6683
6717
|
get inputId(): string;
|
6684
6718
|
protected getDefaultTitleValue(): string;
|
6685
6719
|
protected getDefaultTitleTagName(): string;
|
6686
6720
|
/*
|
6687
|
-
*
|
6688
|
-
*
|
6721
|
+
* Specifies where to display a question description.
|
6722
|
+
*
|
6723
|
+
* Possible values:
|
6724
|
+
*
|
6725
|
+
* - `"default"` (default) - Inherits the setting from the Survey's [`questionDescriptionLocation`](https://surveyjs.io/form-library/documentation/surveymodel#questionDescriptionLocation) property.
|
6726
|
+
* - `"underTitle"` - Displays the description under the question title.
|
6727
|
+
* - `"underInput"` - Displays the description under the interactive area.
|
6689
6728
|
*/
|
6690
6729
|
get descriptionLocation(): string;
|
6691
6730
|
set descriptionLocation(val: string);
|
@@ -6694,33 +6733,28 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6694
6733
|
protected needClickTitleFunction(): boolean;
|
6695
6734
|
protected processTitleClick(): boolean;
|
6696
6735
|
/*
|
6697
|
-
*
|
6698
|
-
* Please note, this property is hidden for question without input, for example html question.
|
6736
|
+
* Specifies a custom error message for a required form field.
|
6699
6737
|
*/
|
6700
6738
|
get requiredErrorText(): string;
|
6701
6739
|
set requiredErrorText(val: string);
|
6702
6740
|
get locRequiredErrorText(): LocalizableString;
|
6703
6741
|
/*
|
6704
|
-
*
|
6742
|
+
* Specifies a caption displayed above the comment area. Applies when the `hasComment` property is `true`.
|
6705
6743
|
*/
|
6706
6744
|
get commentText(): string;
|
6707
6745
|
set commentText(val: string);
|
6708
6746
|
get locCommentText(): LocalizableString;
|
6709
6747
|
/*
|
6710
|
-
*
|
6748
|
+
* A placeholder for the comment area. Applies when the `hasComment` property is `true`.
|
6711
6749
|
*/
|
6750
|
+
get commentPlaceholder(): string;
|
6751
|
+
set commentPlaceholder(val: string);
|
6752
|
+
get locCommentPlaceholder(): LocalizableString;
|
6712
6753
|
get commentPlaceHolder(): string;
|
6713
6754
|
set commentPlaceHolder(val: string);
|
6714
|
-
get
|
6715
|
-
get commentOrOtherPlaceHolder(): string;
|
6716
|
-
/*
|
6717
|
-
* Returns a copy of question errors survey. For some questions like matrix and panel dynamic it includes the errors of nested questions.
|
6718
|
-
*/
|
6755
|
+
get commentOrOtherPlaceholder(): string;
|
6719
6756
|
getAllErrors(): Array<SurveyError>;
|
6720
6757
|
getErrorByType(errorType: string): SurveyError;
|
6721
|
-
/*
|
6722
|
-
* The link to the custom widget.
|
6723
|
-
*/
|
6724
6758
|
get customWidget(): QuestionCustomWidget;
|
6725
6759
|
updateCustomWidget(): void;
|
6726
6760
|
localeChanged(): void;
|
@@ -6731,20 +6765,14 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6731
6765
|
afterRenderQuestionElement(el: any): void;
|
6732
6766
|
afterRender(el: any): void;
|
6733
6767
|
beforeDestroyQuestionElement(el: any): void;
|
6734
|
-
/*
|
6735
|
-
* Returns the rendred question title.
|
6736
|
-
*/
|
6737
6768
|
get processedTitle(): string;
|
6738
|
-
/*
|
6739
|
-
* Returns the title after processing the question template.
|
6740
|
-
*/
|
6741
6769
|
get fullTitle(): string;
|
6742
6770
|
protected get titlePattern(): string;
|
6743
6771
|
get isRequireTextOnStart(): boolean;
|
6744
6772
|
get isRequireTextBeforeTitle(): boolean;
|
6745
6773
|
get isRequireTextAfterTitle(): boolean;
|
6746
6774
|
/*
|
6747
|
-
*
|
6775
|
+
* Disable this property if you want to render the current question on the same line or row with the previous question or panel.
|
6748
6776
|
*/
|
6749
6777
|
get startWithNewLine(): boolean;
|
6750
6778
|
set startWithNewLine(val: boolean);
|
@@ -6781,7 +6809,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6781
6809
|
protected getCssType(): string;
|
6782
6810
|
get renderCssRoot(): string;
|
6783
6811
|
/*
|
6784
|
-
*
|
6812
|
+
* Moves focus to the input field of this question.
|
6785
6813
|
*/
|
6786
6814
|
focus(onError?: boolean): void;
|
6787
6815
|
focusIn: any;
|
@@ -6795,33 +6823,33 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6795
6823
|
supportComment(): boolean;
|
6796
6824
|
supportOther(): boolean;
|
6797
6825
|
/*
|
6798
|
-
*
|
6799
|
-
* Please note, this property is hidden for question without input, for example html question.
|
6826
|
+
* Makes the question required. If a respondent skips a required question, the survey displays a validation error.
|
6800
6827
|
*/
|
6801
6828
|
get isRequired(): boolean;
|
6802
6829
|
set isRequired(val: boolean);
|
6803
6830
|
/*
|
6804
|
-
*
|
6805
|
-
*
|
6806
|
-
*
|
6807
|
-
*
|
6831
|
+
* A Boolean expression. If it evaluates to `true`, this question becomes required.
|
6832
|
+
*
|
6833
|
+
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
6834
|
+
*
|
6835
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
6808
6836
|
*/
|
6809
6837
|
get requiredIf(): string;
|
6810
6838
|
set requiredIf(val: string);
|
6811
6839
|
/*
|
6812
|
-
*
|
6840
|
+
* Specifies whether to display a comment area. Incompatible with the `hasOther` property.
|
6813
6841
|
*/
|
6814
6842
|
get hasComment(): boolean;
|
6815
6843
|
set hasComment(val: boolean);
|
6816
6844
|
/*
|
6817
|
-
*
|
6845
|
+
* A value to assign to the `id` attribute of the rendered HTML element. A default `id` is generated automatically.
|
6818
6846
|
*/
|
6819
6847
|
get id(): string;
|
6820
6848
|
set id(val: string);
|
6821
6849
|
get ariaTitleId(): string;
|
6822
6850
|
get ariaRole(): string;
|
6823
6851
|
/*
|
6824
|
-
* Specifies whether to display the "Other" choice item.
|
6852
|
+
* Specifies whether to display the "Other" choice item. Incompatible with the `hasComment` property.
|
6825
6853
|
*/
|
6826
6854
|
get hasOther(): boolean;
|
6827
6855
|
set hasOther(val: boolean);
|
@@ -6833,19 +6861,20 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6833
6861
|
get renderedInputDisabled(): string;
|
6834
6862
|
protected onReadOnlyChanged(): void;
|
6835
6863
|
/*
|
6836
|
-
*
|
6837
|
-
*
|
6864
|
+
* A Boolean expression. If it evaluates to `false`, this question becomes read-only.
|
6865
|
+
*
|
6866
|
+
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
6867
|
+
*
|
6868
|
+
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility)
|
6838
6869
|
*/
|
6839
6870
|
get enableIf(): string;
|
6840
6871
|
set enableIf(val: string);
|
6841
6872
|
surveyChoiceItemVisibilityChange(): void;
|
6842
|
-
/*
|
6843
|
-
* Run visibleIf and enableIf expressions. If visibleIf or/and enabledIf are not empty, then the results of performing the expression (true or false) set to the visible/readOnly properties.
|
6844
|
-
*/
|
6845
6873
|
runCondition(values: any, properties: any): void;
|
6846
6874
|
/*
|
6847
|
-
*
|
6848
|
-
*
|
6875
|
+
* A question number or letter (depends on SurveyModel's `questionStartIndex` property).
|
6876
|
+
*
|
6877
|
+
* For invisible questions, this property returns an empty string.
|
6849
6878
|
*/
|
6850
6879
|
get no(): string;
|
6851
6880
|
protected getStartIndex(): string;
|
@@ -6855,13 +6884,13 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6855
6884
|
protected initCommentFromSurvey(): void;
|
6856
6885
|
protected runExpression(expression: string): any;
|
6857
6886
|
/*
|
6858
|
-
*
|
6887
|
+
* Gets or sets the question value.
|
6859
6888
|
*/
|
6860
6889
|
get value(): any;
|
6861
6890
|
set value(val: any);
|
6862
6891
|
get valueForSurvey(): any;
|
6863
6892
|
/*
|
6864
|
-
*
|
6893
|
+
* Sets the question's `value` and `comment` properties to `undefined`.
|
6865
6894
|
*/
|
6866
6895
|
clearValue(): void;
|
6867
6896
|
unbindValue(): void;
|
@@ -6869,32 +6898,32 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6869
6898
|
protected getUnbindValue(value: any): any;
|
6870
6899
|
protected isValueSurveyElement(val: any): boolean;
|
6871
6900
|
/*
|
6872
|
-
*
|
6901
|
+
* Returns `true` if a parent element (page or panel) is visible.
|
6873
6902
|
*/
|
6874
6903
|
get isParentVisible(): boolean;
|
6875
6904
|
clearValueIfInvisible(reason?: string): void;
|
6876
6905
|
protected clearValueIfInvisibleCore(): void;
|
6877
6906
|
/*
|
6878
|
-
*
|
6907
|
+
* Specifies when to clear the question value if the question becomes invisible.
|
6879
6908
|
*
|
6880
|
-
*
|
6909
|
+
* Possible values:
|
6881
6910
|
*
|
6882
|
-
* - `default` (default) -
|
6883
|
-
* - `
|
6884
|
-
* - `
|
6885
|
-
* - `
|
6911
|
+
* - `"default"` (default) - Inherits the setting from the Survey's [`clearInvisibleValues`](https://surveyjs.io/form-library/documentation/surveymodel#clearInvisibleValues) property.
|
6912
|
+
* - `"onHidden"` - Clears the value when the question becomes invisible. If a question is invisible on startup and has an initial value, this value will be cleared when the survey is complete.
|
6913
|
+
* - `"onComplete"` - Clears the value when the survey is complete.
|
6914
|
+
* - `"none"` - Never clears the value of an invisible question.
|
6886
6915
|
*/
|
6887
6916
|
get clearIfInvisible(): string;
|
6888
6917
|
set clearIfInvisible(val: string);
|
6889
6918
|
get displayValue(): any;
|
6890
6919
|
/*
|
6891
|
-
*
|
6920
|
+
* Returns a display text that corresponds to the question value. For example, if you call this method for a Dropdown question, it returns an item text instead of an item value.
|
6892
6921
|
*/
|
6893
6922
|
getDisplayValue(keysAsText: boolean, value?: any): any;
|
6894
6923
|
protected getDisplayValueCore(keyAsText: boolean, value: any): any;
|
6895
6924
|
protected getDisplayValueEmpty(): string;
|
6896
6925
|
/*
|
6897
|
-
* A default value for the question. Ignored for question types that cannot have a [value](https://surveyjs.io/
|
6926
|
+
* A default value for the question. Ignored for question types that cannot have a [value](https://surveyjs.io/form-library/documentation/question#value) (for example, HTML).
|
6898
6927
|
*
|
6899
6928
|
* The default value is used as a question value in the following cases:
|
6900
6929
|
*
|
@@ -6905,9 +6934,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6905
6934
|
get defaultValue(): any;
|
6906
6935
|
set defaultValue(val: any);
|
6907
6936
|
/*
|
6908
|
-
* An expression used to calculate the [defaultValue](https://surveyjs.io/
|
6937
|
+
* An expression used to calculate the [defaultValue](https://surveyjs.io/form-library/documentation/question#defaultValue).
|
6909
6938
|
*
|
6910
|
-
* This expression applies until the question [value](https://surveyjs.io/
|
6939
|
+
* This expression applies until the question [value](https://surveyjs.io/form-library/documentation/question#value) is specified by an end user or programmatically.
|
6911
6940
|
*
|
6912
6941
|
* An expression can reference other questions as follows:
|
6913
6942
|
*
|
@@ -6915,26 +6944,27 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6915
6944
|
* - `{panel.other_question_name}` (to access questions inside the same dynamic panel)
|
6916
6945
|
* - `{row.other_question_name}` (to access questions inside the same dynamic matrix or multi-column dropdown)
|
6917
6946
|
*
|
6918
|
-
* An expression can also include built-in and custom functions for advanced calculations. For example, if the `defaultValue` should be today's date, set the `defaultValueExpression` to `"today()"`, and the corresponding built-in function will be executed each time the survey is loaded. Refer to the following help topic for more information: [
|
6947
|
+
* An expression can also include built-in and custom functions for advanced calculations. For example, if the `defaultValue` should be today's date, set the `defaultValueExpression` to `"today()"`, and the corresponding built-in function will be executed each time the survey is loaded. Refer to the following help topic for more information: [Built-In Functions](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#built-in-functions).
|
6919
6948
|
*/
|
6920
6949
|
get defaultValueExpression(): any;
|
6921
6950
|
set defaultValueExpression(val: any);
|
6922
6951
|
get resizeStyle(): "none" | "both";
|
6923
6952
|
/*
|
6924
|
-
* Returns question
|
6925
|
-
*
|
6926
|
-
*
|
6953
|
+
* Returns the question value as an object in which the question name, title, value, and other parameters are stored as individual properties.
|
6954
|
+
*
|
6955
|
+
* If the question can have more than one value (Matrix, Multiple Text), the object enables the `isNode` flag and stores information about these values in the `data` property. Refer to the following help topic for more information: [Access Full Survey Results](https://surveyjs.io/form-library/documentation/handle-survey-results-access#access-full-survey-results).
|
6956
|
+
*
|
6957
|
+
* Pass an object with the `includeEmpty` property set to `false` if you want to skip empty answers.
|
6927
6958
|
*/
|
6928
6959
|
getPlainData(options?: any): any;
|
6929
6960
|
/*
|
6930
|
-
*
|
6931
|
-
* Please note, this property is hidden for question without input, for example html question.
|
6961
|
+
* A correct answer to this question. Specify this property if you want to [create a quiz](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
|
6932
6962
|
*/
|
6933
6963
|
get correctAnswer(): any;
|
6934
6964
|
set correctAnswer(val: any);
|
6935
6965
|
protected convertDefaultValue(val: any): any;
|
6936
6966
|
/*
|
6937
|
-
*
|
6967
|
+
* The number of quiz questions. A question counts if it is visible, has an input field, and specifies `correctAnswer`.
|
6938
6968
|
*/
|
6939
6969
|
get quizQuestionCount(): number;
|
6940
6970
|
get correctAnswerCount(): number;
|
@@ -6951,14 +6981,14 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6951
6981
|
protected isValueExpression(val: any): boolean;
|
6952
6982
|
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: (val: any) => void, values?: any, properties?: any): void;
|
6953
6983
|
/*
|
6954
|
-
*
|
6984
|
+
* A comment to the selected question value. Enable the `hasComment` property to allow users to leave comments.
|
6955
6985
|
*/
|
6956
6986
|
get comment(): string;
|
6957
6987
|
set comment(val: string);
|
6958
6988
|
protected getQuestionComment(): string;
|
6959
6989
|
protected setQuestionComment(newValue: string): void;
|
6960
6990
|
/*
|
6961
|
-
* Returns true if the question value is empty
|
6991
|
+
* Returns `true` if the question value is an empty string, array, or object or if it equals `undefined` or `null`.
|
6962
6992
|
*/
|
6963
6993
|
isEmpty(): boolean;
|
6964
6994
|
get isAnswered(): boolean;
|
@@ -6966,8 +6996,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6966
6996
|
protected updateIsAnswered(): void;
|
6967
6997
|
protected getIsAnswered(): boolean;
|
6968
6998
|
/*
|
6969
|
-
*
|
6970
|
-
* Please note, this property is hidden for question without input, for example html question.
|
6999
|
+
* Question validators.
|
6971
7000
|
*/
|
6972
7001
|
get validators(): any;
|
6973
7002
|
set validators(val: any);
|
@@ -6979,21 +7008,12 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6979
7008
|
* Returns true if there is a validation error(s) in the question.
|
6980
7009
|
*/
|
6981
7010
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
6982
|
-
/*
|
6983
|
-
* Returns the validation errors count.
|
6984
|
-
*/
|
6985
7011
|
get currentErrorCount(): number;
|
6986
7012
|
/*
|
6987
|
-
* Returns
|
7013
|
+
* Returns a character or text string that indicates a required question.
|
6988
7014
|
*/
|
6989
7015
|
get requiredText(): string;
|
6990
|
-
/*
|
6991
|
-
* Add error into the question error list.
|
6992
|
-
*/
|
6993
7016
|
addError(error: string | SurveyError): void;
|
6994
|
-
/*
|
6995
|
-
* Remove a particular error from the question error list.
|
6996
|
-
*/
|
6997
7017
|
removeError(error: SurveyError): void;
|
6998
7018
|
protected canCollectErrors(): boolean;
|
6999
7019
|
protected canRunValidators(isOnValueChanged: boolean): boolean;
|
@@ -7030,13 +7050,16 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
7030
7050
|
supportGoNextPageAutomatic(): boolean;
|
7031
7051
|
supportGoNextPageError(): boolean;
|
7032
7052
|
/*
|
7033
|
-
*
|
7034
|
-
*
|
7053
|
+
* Removes values that cannot be assigned to this question, for example, choices unlisted in the `choices` array.
|
7054
|
+
*
|
7055
|
+
* Call this method after you assign new question values in code to ensure that they are acceptable.
|
7056
|
+
*
|
7057
|
+
* > NOTE: This method does not remove values that do not pass validation. Call the `hasErrors()` method to validate newly assigned values.
|
7035
7058
|
*/
|
7036
7059
|
clearIncorrectValues(): void;
|
7037
7060
|
clearOnDeletingContainer(): void;
|
7038
7061
|
/*
|
7039
|
-
*
|
7062
|
+
* Empties the `errors` array.
|
7040
7063
|
*/
|
7041
7064
|
clearErrors(): void;
|
7042
7065
|
clearUnusedValues(): void;
|
@@ -7359,10 +7382,6 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
7359
7382
|
get page(): IPage;
|
7360
7383
|
set page(val: IPage);
|
7361
7384
|
delete(): void;
|
7362
|
-
/*
|
7363
|
-
* Move panel to a new container Page/Panel. Add as a last element if insertBefore parameter is not used or inserted into the given index,
|
7364
|
-
* if insert parameter is number, or before the given element, if the insertBefore parameter is a question or panel
|
7365
|
-
*/
|
7366
7385
|
moveTo(container: IPanel, insertBefore?: any): boolean;
|
7367
7386
|
/*
|
7368
7387
|
* Returns the visible index of the panel in the survey. Commonly it is -1 and it doesn't show.
|
@@ -7772,6 +7791,7 @@ export declare class QuestionFileModel extends Question {
|
|
7772
7791
|
*/
|
7773
7792
|
loadFiles(files: any): void;
|
7774
7793
|
canPreviewImage(fileItem: any): boolean;
|
7794
|
+
protected loadPreview(newValue: any): void;
|
7775
7795
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
7776
7796
|
protected onCheckForErrors(errors: any, isOnValueChanged: boolean): void;
|
7777
7797
|
protected stateChanged(state: string): void;
|
@@ -8305,7 +8325,16 @@ export declare class QuestionRatingModel extends Question {
|
|
8305
8325
|
* When the `displayRateDescriptionsAsExtremeItems` property is disabled, the texts defined through the [minRateDescription](https://surveyjs.io/Documentation/Library?id=questionratingmodel#minRateDescription) and [maxRateDescription](https://surveyjs.io/Documentation/Library?id=questionratingmodel#maxRateDescription) properties are displayed as plain non-clickable texts.
|
8306
8326
|
*/
|
8307
8327
|
displayRateDescriptionsAsExtremeItems: boolean;
|
8308
|
-
|
8328
|
+
/*
|
8329
|
+
* Specifies how a Rating question displays rate values.
|
8330
|
+
*
|
8331
|
+
* Possible values:
|
8332
|
+
*
|
8333
|
+
* - `"buttons"` - Displays rate values as buttons in a row.
|
8334
|
+
* - `"dropdown"` - Displays rate values as items in a drop-down list.
|
8335
|
+
* - `"auto"` (default) - Selects between the `"buttons"` and `"dropdown"` modes based on the available width. When the width is insufficient to display buttons, the question displays a dropdown.
|
8336
|
+
*/
|
8337
|
+
displayMode: "dropdown" | "auto" | "buttons";
|
8309
8338
|
protected valueToData(val: any): any;
|
8310
8339
|
/*
|
8311
8340
|
* Click value again to clear.
|
@@ -8484,9 +8513,11 @@ export declare class QuestionSelectBase extends Question {
|
|
8484
8513
|
/*
|
8485
8514
|
* Use this property to set the place holder text for other or comment field .
|
8486
8515
|
*/
|
8516
|
+
get otherPlaceholder(): string;
|
8517
|
+
set otherPlaceholder(val: string);
|
8518
|
+
get locOtherPlaceholder(): LocalizableString;
|
8487
8519
|
get otherPlaceHolder(): string;
|
8488
8520
|
set otherPlaceHolder(val: string);
|
8489
|
-
get locOtherPlaceHolder(): LocalizableString;
|
8490
8521
|
/*
|
8491
8522
|
* The text that shows when the other item is choosed by the other input is empty.
|
8492
8523
|
*/
|
@@ -8856,6 +8887,8 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
8856
8887
|
export declare class QuestionDropdownModel extends QuestionSelectBase {
|
8857
8888
|
constructor(name: string);
|
8858
8889
|
dropdownListModel: DropdownListModel;
|
8890
|
+
updateReadOnlyText(): void;
|
8891
|
+
locStrsChanged(): void;
|
8859
8892
|
get showOptionsCaption(): boolean;
|
8860
8893
|
set showOptionsCaption(val: boolean);
|
8861
8894
|
get optionsCaption(): string;
|
@@ -8910,8 +8943,10 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8910
8943
|
get cleanButtonCaption(): string;
|
8911
8944
|
set cleanButtonCaption(val: string);
|
8912
8945
|
get locCleanButtonCaption(): LocalizableString;
|
8946
|
+
inputHasValue: boolean;
|
8947
|
+
readOnlyText: string;
|
8913
8948
|
getControlClass(): string;
|
8914
|
-
get
|
8949
|
+
get selectedItemLocText(): LocalizableString;
|
8915
8950
|
get popupModel(): any;
|
8916
8951
|
onOpened: EventBase<QuestionDropdownModel>;
|
8917
8952
|
onOpenedCallBack(): void;
|
@@ -9945,6 +9980,7 @@ export declare var settings: {
|
|
9945
9980
|
trimStrings: boolean,
|
9946
9981
|
caseSensitive: boolean,
|
9947
9982
|
},
|
9983
|
+
expressionDisableConversionChar: string,
|
9948
9984
|
/*
|
9949
9985
|
* Set this value to false, if you want to have UTC fuctions, for example setUTCHours inside our functions, like today.
|
9950
9986
|
* By default it uses setHours function, with local date
|
@@ -10042,6 +10078,10 @@ export declare var settings: {
|
|
10042
10078
|
*/
|
10043
10079
|
executeCompleteTriggerOnValueChanged: boolean,
|
10044
10080
|
/*
|
10081
|
+
* Set this property to false to stop showing "Compete" button when the complete trigger is going to be executed.
|
10082
|
+
*/
|
10083
|
+
changeNavigationButtonsOnCompleteTrigger: boolean,
|
10084
|
+
/*
|
10045
10085
|
* Set this property to false to execute the skip trigger on next page instead of on value change.
|
10046
10086
|
*/
|
10047
10087
|
executeSkipTriggerOnValueChanged: boolean,
|