SurveyJS Survey Creator v2.0.2
Released: Mar 25, 2025
v2.0.2 での更新項目
機能
- Change icons for Property Grid categories:
- Survey Creator's Property Grid and other UI elements are built upon regular SurveyJS surveys and can be customized using the SurveyModel API. To access and customize a SurveyModel instance that underlies a specific UI element, including Property Grid, you can handle the onSurveyInstanceCreated event. Previously, this event didn't allow you to change icons for Property Grid categories in the new icon view, because the categories are in fact survey pages, and they did not support icons. To address this issue, SurveyJS added a new iconName property to the PageModel object. You can change this property within the onSurveyInstanceCreated event handler if you want to modify a category icon.
- Clear translations when a source text is changed:
- Added a new property, clearTranslationsOnSourceTextChange, that specifies whether to delete translations to other languages when a source language translation is changed. This property may be useful, for instance, if you localize strings in a batch using a machine translation service and need to know which strings to update. The following code shows how to enable the new property.
- Position a property editor within a table editor in Property Grid:
- Table editors are used to edit choices, rows, columns, and other collections. Collection items are represented by such classes as itemvalue, matrixdropdowncolumn, and others. Previously, when you added a custom property to those classes, its editors were displayed in a custom table column. Since this release, you can move the editors to a detail section or display them in a column and in the detail section.
不具合の修正
- Property Grid Choices editor:
- The Fast Entry button remains disabled even if choices do not contain any settings other than value and text.
- A exception is raised when processing choices using an onFastEntryFinished event handler.
- Form Library:
- Rating Scale in dropdown mode: The min and max labels are hidden if rate value aren't auto-generated.
- The onTextMarkdown event doesn't provide access to a choice item for which the event is raised.
- SurveyModel's isLastPage() method returns true even when the current page is not last in question-per-page mode.
- Entering an already present choice option into the Other comment box saves an incorrect result if storeOthersAsComment is false.
- displayValue() function copies the Other item's label instead of its value when specified inside a Dynamic Panel.