Zimmer reached down on his console and flipped a toggle switch.
齐默把手伸到控制台上并按下了切换开关。
What iUI doesn't do, however, is tie the toggle switch to a form control, so rails_iui steps in here.
但是,iUI 不会将 toggle 开关与表单控件绑定在一起,因此在这里引入 rails_iui。
It would be tempting in this case to re-use the IDs teoma and yahoo later in the switch/case/toggle mechanism, but that will not work because those names refer to the instance data.
在本例后面的 switch/case/toggle 机制中重用 teoma 和 yahoo 这两个 ID 会是个不小的诱惑,但是由于它们的名称都引用了实例数据所以并不能正常运行。
应用推荐