UNPKG

@jirkasa/code-box

Version:

Showcase code samples on the web with a container that lets users select and display different samples.

18 lines (17 loc) 977 B
import CodeBoxOptions from "../code-box/CodeBoxOptions"; import VirtualCodeBox from "../code-box/virtual-code-box/VirtualCodeBox"; import CodeBoxCreator from "./CodeBoxCreator"; /** Manages the creation of virtual code boxes. */ declare class VirtualCodeBoxCreator extends CodeBoxCreator<VirtualCodeBox, CodeBoxOptions> { /** Stores created code boxes by id (code boxes with no id are not stored). */ private createdCodeBoxesById; /** * Creates new virtual code box creator. * @param defaultCodeBoxOptions Default code box options to be used, when no options are provided to the create method. */ constructor(defaultCodeBoxOptions?: CodeBoxOptions); getCreatedCodeBoxById(id: string): VirtualCodeBox | null; protected createCodeBox(element: HTMLElement, codeBoxOptions: CodeBoxOptions): VirtualCodeBox | null; protected createCodeBoxOptionsCopy(codeBoxOptions: CodeBoxOptions): CodeBoxOptions; } export default VirtualCodeBoxCreator;