j-SwitchButton
Konfiguracja:
required {Boolean}opcjonalny, umożliwia "wymagane" (default:false)disabled {Boolean}opcjonalny, wyłącza ten składnikborder {Boolean}opcjonalny, pozwalająca na dolną granicę (default:false)align {String}Po prawej/lewnej alineacji elementu przełącznika (default:left)description {String}opcjonalny
Użyj go z <ui-component name="switchbutton">Gdy element nie jest jeszcze ładowany, jComponent Pobierz go po pierwszym użyciu z adresu DEF.fallback (Wydaje się Componentator Autor: Tomáš Novák Źródło: Componentator Zestaw składników, licencja 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>