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) 971 B
import TabCodeBoxOptions from "../code-box/tab-code-box/TabCodeBoxOptions"; import TabCodeBox from "../code-box/tab-code-box/TabCodeBox"; import CodeBoxCreator from "./CodeBoxCreator"; /** Manages the creation of tab code boxes. */ declare class TabCodeBoxCreator extends CodeBoxCreator<TabCodeBox, TabCodeBoxOptions> { /** Stores created code boxes by id (code boxes with no id are not stored). */ private createdCodeBoxesById; /** * Creates new tab code box creator. * @param defaultCodeBoxOptions Default code box options to be used, when no options are provided to the create method. */ constructor(defaultCodeBoxOptions?: TabCodeBoxOptions); getCreatedCodeBoxById(id: string): TabCodeBox | null; protected createCodeBox(element: HTMLElement, codeBoxOptions: TabCodeBoxOptions): TabCodeBox | null; protected createCodeBoxOptionsCopy(codeBoxOptions: TabCodeBoxOptions): TabCodeBoxOptions; } export default TabCodeBoxCreator;