您是否可以添加代码示例来切换右侧标签类的开关

时间:2018-06-21 19:11:27

标签: vmware-clarity toggleswitch

您的文档中的toggles.demo.html需要一节显示受支持的右标签类的用法。一般来说,.toggle-switch.right-label类在任何地方都没有记录。我们通过深入研究代码来发现它。

<section class="form-block">
    <div class="form-group">
        <label for="formGroupExampleInput">Right Label Toggles</label>
        <div class="toggle-switch right-label">
            <input type="checkbox" id="toggle_4">
            <label for="toggle_4">Toggles turn on and off</label>
        </div>
        <div class="toggle-switch right-label">
            <input type="checkbox" id="toggle_5" disabled>
            <label for="toggle_5">Toggle off and disabled</label>
        </div>
        <div class="toggle-switch right-label">
            <input type="checkbox" id="toggle_6" checked disabled>
            <label for="toggle_6">Toggle on and disabled</label>
        </div>
    </div>
</section>

0 个答案:

没有答案