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) 610 B
/** Manager of code box code view. */ declare class CodeBoxCodeViewManager { /** Function, called when code view identifier should be changed. */ onIdentifierChange: ((newIdentifier: string) => void) | null; /** Function, called when code view should be unlinked from code box. */ onUnlinkCodeBox: (() => void) | null; /** * Changes identifier of code view. * @param newIdentifier New identifier. */ changeIdentifier(newIdentifier: string): void; /** * Unlinks code view from code box. */ unlinkCodeBox(): void; } export default CodeBoxCodeViewManager;