无法在Surveyjs的Markdown Radiogroup的“其他描述”复选框中添加svg图标

问题描述

questions: [
{
"type": "radiogroup","hasOther": true,"isrequired": true,"name": "favoritePet","title": "What is your favorite pet ![A parrot](https://surveyjs.io/Content/Images/examples/markdown/image_16x16.svg =16x16) ?","choices": [
{
"value": "dog","text": "Dog: ![A dog](https://surveyjs.io/Content/Images/examples/markdown/dog.svg =14x14)"
},{
"value": "cat","text": "Cat: ![A cat](https://surveyjs.io/Content/Images/examples/markdown/cat.svg =14x14)"
},{
"value": "parrot","text": "Parrot ![A parrot](https://surveyjs.io/Content/Images/examples/markdown/parrot.svg =14x14)"
}
]
}
]

不能在hasOther中添加图标,在文档中它显示了选项中显示的图标,但没有显示如何在其他(描述)选项中添加图标。 https://www.surveyjs.io/Examples/Library/?id=survey-markdown-radiogroup

解决方法

您需要设置otherText属性:

{
            "type": "radiogroup","hasOther": true,"isRequired": true,"name": "favoritePet","otherText": "Custom other text with an image ![A parrot](https://surveyjs.io/Content/Images/examples/markdown/image_16x16.svg =16x16)","title": "What is your favorite pet ![A parrot](https://surveyjs.io/Content/Images/examples/markdown/image_16x16.svg =16x16) ?","choices": [
                {
                    "value": "dog","text": "Dog: ![A dog](https://surveyjs.io/Content/Images/examples/markdown/dog.svg =14x14)"
                },{
                    "value": "cat","text": "Cat: ![A cat](https://surveyjs.io/Content/Images/examples/markdown/cat.svg =14x14)"
                },{
                    "value": "parrot","text": "Parrot ![A parrot](https://surveyjs.io/Content/Images/examples/markdown/parrot.svg =14x14)"
                }
            ]
        }

这是工作中的采样器示例-https://plnkr.co/edit/9LgRCEpWr2b8LGU1