You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -653,7 +653,7 @@ Go to live [ordertable component](https://surveyjs.io/Examples/Survey-Creator?id
653
653
654
654
We can solve the previous task by using matrix dynamic question. End-user will have to add/remove rows to add/remove order items.
655
655
656
-
Unfortunately, end-user could not build this type of survey in SurveyJS Creator. It requries to write JavaScript code and handle several events. The working example you can find [here](https://surveyjs.io/Examples/Library?id=questiontype-matrixdynamic-totals).
656
+
Unfortunately, end-user could not build this type of survey in SurveyJS Creator. It requires to write JavaScript code and handle several events. The working example you can find [here](https://surveyjs.io/Examples/Library?id=questiontype-matrixdynamic-totals).
657
657
658
658
659
659
```javascript
@@ -839,8 +839,8 @@ Go to live [ordergrid component](https://surveyjs.io/Examples/Survey-Creator?id=
839
839
## Component registration API
840
840
841
841
To register a new component, you have to add to into _Survey.ComponentCollection.Instance_ singleton a json with at least two attributes:
842
-
* name - unique name accross all SurveyJS classes.
843
-
* questionJSON or elementsJSON - a wrapper question JSON or the JSON list of elements (questions and panels).
842
+
* name ― unique name across all SurveyJS classes.
843
+
* questionJSON or elementsJSON ― a wrapper question JSON or the JSON list of elements (questions and panels).
Copy file name to clipboardExpand all lines: docs/Survey-Creator-Overview.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ If you want to get the most from our Survey Creator, then we hope that the follo
18
18
*[Customize SurveyJS Elements Editor](#elementseditor)
19
19
*[Modify new created objects (Questions, Panels, Pages, Columns and Items)](#modifynewobjects)
20
20
*[Accessing Surveys instance: designer and test surveys](#accesssurveys)
21
-
*[Adorners - change element properties on it's designer surface](#adorners)
21
+
*[Adorners ― change element properties on its designer surface](#adorners)
22
22
23
23
24
24
<divid="platforms"></div>
@@ -107,7 +107,7 @@ There are several options that you may set to change the Survey Creator behavior
107
107
108
108
## Load and Save Survey
109
109
110
-
To load the Survey Definition into the Survey Creator you have to simply set it's text property. The next line load the Survey Definition from the local storage:
110
+
To load the Survey Definition into the Survey Creator you have to simply set its text property. The next line load the Survey Definition from the local storage:
The first line in this callback function is obvious. The second one tells Survey Creator that the saving operation **#saveNo** was successfully execuated. Set the last parameter of the callback function to **false**, if an error during saving was happend.
124
+
The first line in this callback function is obvious. The second one tells Survey Creator that the saving operation **#saveNo** was successfully execuated. Set the last parameter of the callback function to **false**, if an error during saving was happened.
125
125
126
-
The reason it is done as a callback function and we have a **saveNo** parameter (the numeric parameter that increase with every saving operation, starting from 1), because in a real world application, you will likely save the Survey definition into your Storage/Database. You will make an asyn call of your web service. It means that if two saving operations are happened almost at the same time, the last operation may be processed by your server code faster than the previous one. In this case you will have to ignore all saving operations that has the **saveNo** parameter less than you have already proccessed.
126
+
The reason it is done as a callback function and we have a **saveNo** parameter (the numeric parameter that increase with every saving operation, starting from 1), because in a real world application, you will likely save the Survey definition into your Storage/Database. You will make an asyn call of your web service. It means that if two saving operations are happened almost at the same time, the last operation may be processed by your server code faster than the previous one. In this case you will have to ignore all saving operations that has the **saveNo** parameter less than you have already processed.
127
127
128
128
Here is the example of **saveSurveyFunc** callback implementation (with help of jQuery magic).
129
129
```javascript
@@ -251,7 +251,7 @@ Here is the list of available default question types.
251
251
|matrixdynamic|Matrix dymanic question. You may use a dropdown, checkbox, radiogroup, text and comment questions as a cell editors. An end-user may dynamically add/remove rows, unlike in matrix dropdown question|
252
252
|multipletext|Multiple text question. Several text inputs in one question can be placed in one or several columns|
253
253
|panel|Container element. It may contain questions and other panels.|
254
-
|paneldynamic|Panel dymanic question. You setup the template panel, but adding elements (any question or a panel) and assign a text to it's title, and this panel will be used as a template on creating dynamic panels. The number of panels is defined by panelCount property. An end-user may dynamically add/remove panels, unless you forbidden this.|
254
+
|paneldynamic|Panel dymanic question. You setup the template panel, but adding elements (any question or a panel) and assign a text to its title, and this panel will be used as a template on creating dynamic panels. The number of panels is defined by panelCount property. An end-user may dynamically add/remove panels, unless you forbidden this.|
255
255
|radiogroup|Radiogroup question. A single choice question.|
256
256
|rating|Rating question|
257
257
|text|Input text question|
@@ -322,7 +322,7 @@ You may change the name of the default (General) category as any other localizab
Available since v1.5.4. An optional numeric property. By default, it is -1. Set it to 0 or bigger number to change the the property order inside the category in Element Editor.
668
+
Available since v1.5.4. An optional numeric property. By default, it is -1. Set it to 0 or bigger number to change the property order inside the category in Element Editor.
669
669
670
670
```javascript
671
671
//Add description property into survey object and show it in general category as third property editor.
@@ -692,7 +692,7 @@ The following code creates new property and new category "Entity" and make this
If you want to hide the the same tab for dropdown question Editor only, then you have to add this tab with visible attribute equals to false. The reason you must to do it in this way, beacause the definition for every element type is merging with all its parent types.
927
+
If you want to hide the same tab for dropdown question Editor only, then you have to add this tab with visible attribute equals to false. The reason you must to do it in this way, beacause the definition for every element type is merging with all its parent types.
928
928
```javascript
929
929
var editorDefinition =SurveyCreator.SurveyQuestionEditorDefinition.definition["dropdown"];
930
930
// The tabs and properties may be empty for an element type.
## Adorners - change element properties on it's designer surface
1054
+
## Adorners ― change element properties on its designer surface
1055
1055
1056
1056
Working on end-user usability issues, we have introduced adorners concepts in spring 2018. End-users were trying to modify SurveyJS elements (questions and panels) directly in designer surface and do not use Property Grid or Question/Panel Editors.
1057
1057
@@ -1083,7 +1083,7 @@ _Dropdown question standard adorners_
1083
1083
|panel-actions|panel|It has several actions as: showing Panel Editor, delete panel, copy panel and others|
1084
1084
|rating-item|rating question|It allows to add a new rating item, delete the existing and change rating item text|
1085
1085
|select-choices|dropdown question|a link that show/hide the choices, so a end-user is able to edit them|
1086
-
|item-title|multiple text question|In-place editing a mutliple text item title|
1086
+
|item-title|multiple text question|In-place editing a multiple text item title|
1087
1087
|label|boolean question|In-place editing of boolean question label|
1088
1088
1089
1089
There are a lot of actions in "question-actions" and "panel-actions" adorners. You may additionally control them by removing the functionality for all of them or for an element by using **onElementAllowOperations** event.
0 commit comments