ForgeKomponenty
cs

Komponenty

j-SwitchButton

jComponent 20 · jcomponent@20 component Příklad načten s jComponent 20

Konfigurace:

  • required {Boolean} volitelně, umožňuje "potřebné" (předvolené: false)
  • disabled {Boolean} volitelně, tento složka je deaktivována
  • border {Boolean} volitelné, umožňuje hraniční dno (předvolené: false)
  • align {String} levé/pravé vyrovnání přepínače (předvolené: left)
  • description {String} volitelné

Použijte ji s <ui-component name="switchbutton">Pokud je součástka ještě nezačleněna, jComponent Stáhnout ji na první použití z adresy DEF.fallback a) The Componentator CDN dle předvolby. autor: Tomáš Novák. zdroj: Componentator Výrobce je autorizován, MIT licence.

example.html
<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>