开关控件是用来在列表中提供简单选择的。
A switch control is intended to offer a simple choice within a list.
用户将开关控件从一端滑动到另外一端,表示选择两个值中的一个。
Users slide a switch control from one side to the other, revealing one of two values.
但是,iUI 不会将 toggle 开关与表单控件绑定在一起,因此在这里引入 rails_iui。
What iUI doesn't do, however, is tie the toggle switch to a form control, so rails_iui steps in here.
应用推荐