When adding a Rating item from the design surface, the creator.onItemValueAdded
function is fired, however, a newly added item's value
and text
are not set to custom values.
creator.onItemValueAdded.add((sender, options) => {
options.newItem.value = 'newItem1';
switch (options.propertyName) {
case 'rateValues' :
options.newItem.value = "new1";
options.newItem.text = "Enter Choice";
break;
}
}
);
Example.
https://user-images.githubusercontent.com/22372972/218088611-a1262582-dac8-4e34-b994-963f5512c43a.mp4
Owner Name | surveyjs |
Repo Name | survey-creator |
Full Name | surveyjs/survey-creator |
Language | TypeScript |
Created Date | 2015-12-22 |
Updated Date | 2023-03-30 |
Star Count | 683 |
Watcher Count | 29 |
Fork Count | 308 |
Issue Count | 301 |
Issue Title | Created Date | Updated Date |
---|