משתנה placeholder שניתן לעריכה

הרכיב <var> מאפשר לקוראים להחליף משתני placeholder במשתנים משלהם ערכים.

שימוש כללי

משתני placeholder שניתנים לעריכה בבלוק קוד מסוג 'קליק להעתקה' של 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.

סנכרון

משתני placeholder שניתנים לעריכה שיש להם אותו היקף מסתנכרנים עם כל אחד מהם אחר ולעדכן באופן מיידי את הערך החדש.

השבתת הסנכרון

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

הפעלת הסנכרון

ה-placeholder הזה VARIABLE הוא מוגדרת מחוץ לבלוק קוד ומשתמשת במאפיין scope כדי לבצע סנכרון המשתנים שבקטע השבתת הסנכרון שלמעלה.