blockly > MenuItem > (konstruktor)

Tworzy 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 wyświetlany jako zawartość elementu lub element HTML do wyświetlenia.
opt_value ciąg znaków | nie zdefiniowano (Opcjonalnie) Dane/model powiązane z elementem menu.