ForgeКомпоненти
bg

Компоненти

j-SwitchButton

jComponent 20 · jcomponent@20 component Примерът е зареден с jComponent 20

Конфигуриране:

  • required {Boolean} опционално, позволява "необходимо" (дефолт: false)
  • disabled {Boolean} опционално, деактивира този компонент
  • border {Boolean} опционално, позволяващ дъното на границата (предварително: false)
  • align {String} Левият/десният елемент на превключвателя (предварително: left)
  • description {String} Опционално

Използвайте го с <ui-component name="switchbutton">Когато компонентът все още не е зареден, jComponent Изтегляне на първия адрес в DEF.fallback (След това Componentator Автор: Томаш Новак. източник: Componentator Съставни съставки, лиценз на MIT.

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>