⊗jsvuPmFmED 51 of 72 menu

Locking Elements in Vue

You can reactively block form elements using the disabled attribute. Let's try it. Let's make a corresponding property:

data() { return { isDisabled: true, } }

Let's bind this property to the button:

<template> <button v-bind:disabled="isDisabled">btn</button> </template>

Given an input. Make a button that, when pressed, will alternately block and unblock our input.

Modify the previous task so that the state of the input is controlled by a checkbox: if the checkbox is checked, the input is disabled, and if it is not checked, the input is disabled.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline