UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

110 lines (100 loc) 3.88 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title id='Description'> React SwitchButton is a widget with behavior similar to the jqxCheckBox. It has two states - checked and unchecked (on/off). The user can switch between the different states using mouse clicks or by drag and drop of the thumb. </title> <link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxswitchbutton.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxcheckbox.js"></script> <script type="text/javascript" src="../../../scripts/demos.js"></script> <style type="text/css"> #settings-panel { background-color: #fff; padding: 20px; display: inline-block; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; position: relative; } .settings-section { background-color: #f7f7f7; height: 45px; width: 500px; border: 1px solid #b4b7bc; border-bottom-width: 0px; } .settings-section-top { border-bottom-width: 0px; -moz-border-radius-topleft: 10px; -webkit-border-top-left-radius: 10px; border-top-left-radius: 10px; -moz-border-radius-topright: 10px; -webkit-border-top-right-radius: 10px; border-top-right-radius: 10px; } .sections-section-bottom { border-bottom-width: 1px; -moz-border-radius-bottomleft: 10px; -webkit-border-bottom-left-radius: 10px; border-bottom-left-radius: 10px; -moz-border-radius-bottomright: 10px; -webkit-border-bottom-right-radius: 10px; border-bottom-right-radius: 10px; } .sections-top-shadow { width: 500px; height: 1px; position: absolute; top: 21px; left: 21px; height: 30px; border-top: 1px solid #e4e4e4; -moz-border-radius-topleft: 10px; -webkit-border-top-left-radius: 10px; border-top-left-radius: 10px; -moz-border-radius-topright: 10px; -webkit-border-top-right-radius: 10px; border-top-right-radius: 10px; } .settings-label { font-weight: bold; font-family: Sans-Serif; font-size: 14px; margin-left: 14px; margin-top: 15px; float: left; } .settings-melody { color: #385487; font-family: Sans-Serif; font-size: 14px; display: inline-block; margin-top: 7px; } .settings-setter { float: right; margin-right: 14px; margin-top: 8px; } .events-container { margin-left: 20px; } #theme { margin-left: 20px; margin-top: 20px; } </style> </head> <body> <div class="example-description" style="margin-bottom:3em"> React SwitchButton is a widget with behavior similar to the jqxCheckBox. It has two states - checked and unchecked (on/off). The user can switch between the different states using mouse clicks or by drag and drop of the thumb. </div> <div id="app"></div> <script src="../build/switchbutton_defaultfunctionality.bundle.js"></script> </body> </html>