site/node_modules/mj-context-menu/js/item_label.d.ts

15 lines
469 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { AbstractItem } from './abstract_item.js';
import { Menu } from './menu.js';
import { ParserFactory } from './parser_factory.js';
export declare class Label extends AbstractItem {
static fromJson(_factory: ParserFactory, { content: content, id: id }: {
content: string;
id: string;
}, menu: Menu): Label;
constructor(menu: Menu, content: string, id?: string);
generateHtml(): void;
toJson(): {
type: string;
};
}