Met het <var>
-element kunnen lezers tijdelijke variabelen vervangen door hun eigen waarden.
Algemeen gebruik
Bewerkbare variabelen voor tijdelijke aanduidingen in een Markdown click-to-copy-codeblok zijn standaard bewerkbaar.
Edit the name of this PROJECT_ID.
Bewerkbaarheid inschakelen
Voeg een edit
klasse toe aan het <var>
-element om een variabele te maken die EDITABLE
is buiten een codeblok.
Bewerkbaarheid uitschakelen
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.
Tooltips
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.
Synchronisatie
Bewerkbare variabelen voor tijdelijke aanduidingen die hetzelfde bereik hebben, worden met elkaar gesynchroniseerd en onmiddellijk bijgewerkt om de nieuwe waarde weer te geven.
Synchronisatie uitschakelen
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
Synchronisatie inschakelen
Deze tijdelijke aanduiding VARIABLE
wordt buiten een codeblok ingesteld en gebruikt het scope
attribuut om te synchroniseren met de variabelen in het gedeelte over het uitschakelen van synchronisatie hierboven .