Змінна-заповнювач, яку можна редагувати

Елемент <var> дозволяє читачам замінювати змінні-заповнювачі власними значеннями.

Загальне використання

Змінні-заповнювачі, які можна редагувати, у блоці коду Markdown, що копіюється при натисканні, доступні за замовчуванням.

Edit the name of this PROJECT_ID.

Увімкнення можливості редагування

Додайте клас edit до елемента <var> , щоб створити змінну, яку EDITABLE за межами блоку коду.

Вимкнення можливості редагування

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.

Підказки

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.

Синхронізація

Змінні-заповнювачі, які можна редагувати, і мають однакову область синхронізуються одна з одною та негайно оновлюються, щоб відобразити нове значення.

Відключення синхронізації

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

Увімкнення синхронізації

Цей покажчик місця заповнення VARIABLE встановлено поза блоком коду та використовує атрибут scope для синхронізації зі змінними в розділі вимкнення синхронізації вище .