@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) • 725 B
TypeScript
import CodeBoxFile from "../CodeBoxFile";
import TabCodeBox from "./TabCodeBox";
/** Represents file of tab code box. */
declare class TabCodeBoxFile extends CodeBoxFile<TabCodeBox> {
/**
* Returns position of file button.
* @returns Position of file button starting from 0.
*/
getButtonPosition(): number | null;
/**
* Changes position of file button by swapping it with different code view or file button.
* @param position Position of code view or file button (starting from 0) with which should be file button swapped.
* @returns Indicates whether position has been successfully changed.
*/
setButtonPosition(position: number): boolean;
}
export default TabCodeBoxFile;