Question T8476
Visible to All Users

Add a row or an item from Designer window

created 3 years ago

Hello,

Can I add lines directly to the designer window, instead of the preview window and settings?

Answers approved by surveyjs Support

created 3 years ago

Hello,
If you are trying to modify the Question Adorner, then you have access to the question model as "this.question".
The matrix question has "rows" array of ItemValue objects.
You can simply create it and add into the question, this.question.rows.push(new ItemValue("new unique value"));

PS: We will likely have adding/removing rows/columns in our adorners out of the box in next versions.

Thank you,
Andrew
SurveyJS Team