单选按钮在 TinyMce 4 中充当复选框 [英] Radio buttons acts as Check-box in TinyMce 4
本文介绍了单选按钮在 TinyMce 4 中充当复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是fiddle,类型是radio
,但作用类似于复选框
Here's the fiddle, the type is radio
but acts like check-box
{type: 'radio', name: 'letter', label: 'Letter'},
{type: 'radio', name: 'custom', label: 'Custom'},
我尝试在一个名称下使用它们,但没有成功,还有我的第二个问题:如何将其中一个设置为默认值(选定时).
I tried using them under one name that didn't work out, and my 2nd question: how to make one of them as default(as selected).
保持微笑 :)
Keep Smiling :)
推荐答案
tinymce/ui/Radio
类似乎还没有实现.它就像一个 tinymce/ui/Checkbox
.
It seems like the tinymce/ui/Radio
class is not implemented yet. It act like a tinymce/ui/Checkbox
.
您可以使用 tinymce/ui/ListBox
类作为解决方法.
You can use the tinymce/ui/ListBox
class as a workaround.
这篇关于单选按钮在 TinyMce 4 中充当复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文