Element <var>
omogoča bralcem, da zamenjajo spremenljivke nadomestnih znakov z lastnimi vrednostmi.
Splošna uporaba
Spremenljivke nadomestnih znakov, ki jih je mogoče urejati, v bloku kode Markdown s klikom za kopiranje je mogoče privzeto urejati.
Edit the name of this PROJECT_ID.
Omogočanje možnosti urejanja
Elementu <var>
dodajte razred edit
, da ustvarite spremenljivko, ki jo je EDITABLE
zunaj bloka kode.
Onemogočanje možnosti urejanja
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.
Namigi orodij
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.
Sinhronizacija
Spremenljivke ograde, ki jih je mogoče urejati in imajo enak obseg , se med seboj sinhronizirajo in takoj posodobijo, da odražajo novo vrednost.
Onemogočanje sinhronizacije
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
Omogočanje sinhronizacije
Ta nadomestni znak VARIABLE
je nastavljen zunaj bloka kode in uporablja atribut scope
za sinhronizacijo s spremenljivkami v zgornjem razdelku za onemogočanje sinhronizacije .