item_label.d.ts 469 B

1234567891011121314
  1. import { AbstractItem } from './abstract_item.js';
  2. import { Menu } from './menu.js';
  3. import { ParserFactory } from './parser_factory.js';
  4. export declare class Label extends AbstractItem {
  5. static fromJson(_factory: ParserFactory, { content: content, id: id }: {
  6. content: string;
  7. id: string;
  8. }, menu: Menu): Label;
  9. constructor(menu: Menu, content: string, id?: string);
  10. generateHtml(): void;
  11. toJson(): {
  12. type: string;
  13. };
  14. }