@jirkasa/code-box
Version:
Showcase code samples on the web with a container that lets users select and display different samples.
23 lines (22 loc) • 861 B
TypeScript
import CodeBoxBuilder from "../CodeBoxBuilder";
/** Builder of tab code box. */
declare class TabCodeBoxBuilder implements CodeBoxBuilder {
/** Container for tabs (buttons). */
private tabsContainer;
/**
* Creates new tab code box builder.
*/
constructor();
/**
* Returns container for tabs (buttons).
* @returns Container for tabs (buttons).
*/
getTabsContainer(): HTMLElement;
customizeRootElement(element: HTMLElement): void;
createCodeViewContainer(): HTMLElement;
getCodeViewContainerCSSHiddenClass(): string;
createNoCodeViewSelectedElement(height: string, text: string): HTMLElement;
getNoCodeViewCSSHiddenClass(): string;
assembleElements(rootElement: HTMLElement, codeViewContainer: HTMLElement, noCodeViewSelectedElement: HTMLElement): void;
}
export default TabCodeBoxBuilder;