blockly > MenuItem > (konstruktor)
MenuItem.(constructor)
Konstruuje nową instancję klasy MenuItem
Podpis:
constructor(content: string | HTMLElement, opt_value?: string | undefined);
Parametry
Parametr | Typ | Opis |
---|---|---|
treść | ciąg znaków | HTMLElement | Podpis tekstowy do wyświetlenia jako treść elementu lub element HTML do wyświetlenia. |
opt_value | ciąg | niezdefiniowany | (Opcjonalnie) Dane/model powiązane z pozycją menu. |