j-SwitchButton
Configuração:
required {Boolean}opcional, permite o "requisito" (default:false)disabled {Boolean}opcional, desabilita este componenteborder {Boolean}opcional, permitindo o fundo da fronteira (default:false)- Alinhamento
align {String}esquerda/direita do elemento de interrupção (default:left) description {String}opcional
Use-o com <ui-component name="switchbutton">Quando o componente ainda não está carregado, jComponent Descarrega-o no primeiro uso do endereço DEF.fallback (a partir do Componentator CDN por padrão). autor: Tomáš Novák. fonte: o Componentator Reserva de componentes, licença MIT.
<div style="width:500px">
<ui-component name="switchbutton" path="form.newsletter" config="description:Product updates;border:1">Receive messages from our platform</ui-component>
<ui-component name="switchbutton" path="form.terms" config="description:Promotions and tips;border:1">Receive coupons, promotions, surveys</ui-component>
<ui-component name="switchbutton" path="form.marketing" config="description:Marketing information;required:1;align:right;border:1">Receive marketing somarines</ui-component>
<ui-component name="switchbutton" path="form.disabled" config="description:Acceptance of 2023;disabled:1;align:right">Documents are not ready</ui-component>
</div>
<script>
var form = {};
form.newsletter = true;
</script>