Elementas <var>
leidžia skaitytojams pakeisti rezervuotos vietos kintamuosius savo vertėmis.
Bendras naudojimas
Redaguojami rezervuotos vietos kintamieji žymėjimo spustelėjus ir kopijuoti kodo bloke yra redaguojami pagal numatytuosius nustatymus.
Edit the name of this PROJECT_ID.
Įgalinamas redagavimas
Pridėkite edit
klasę prie elemento <var>
, kad sukurtumėte kintamąjį, kuris yra EDITABLE
už kodo bloko ribų.
Išjungiamas redagavimas
This example adds the `readonly` class to the <var> element to create an
UNEDITABLE_VARIABLE.
This example adds the `readonly` class to the code block to disable editability
of both VARIABLE_1 and VARIABLE_2.
Patarimai
This EDITABLE variable has a tooltip that defaults to the
name of its original placeholder text.
This EDITABLE variable uses a `label`
attribute to create a custom tooltip named
Edit me.
Sinchronizavimas
Redaguojami rezervuotos vietos kintamieji, turintys tą pačią sritį , sinchronizuojami vienas su kitu ir nedelsiant atnaujinami, kad atspindėtų naują reikšmę.
Sinchronizavimo išjungimas
This variable synchronizes by default because it is in a click-to-copy code
block. It has a `label` attribute named `variable with scope`:
VARIABLE
This variable adds the `no-scope` class so that it does not synchronize with the
other variables and has a `label` attribute named `variable without scope`:
VARIABLE
This variable also synchronizes by default and has a `label` attribute named
`variable with scope`:
VARIABLE
Sinchronizavimo įjungimas
Šis rezervuotos vietos ženklas VARIABLE
nustatytas už kodo bloko ribų ir naudoja scope
atributą, kad sinchronizuotų su kintamaisiais anksčiau pateiktoje sinchronizavimo išjungimo skiltyje .