@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) • 770 B
TypeScript
import CodeBoxCodeView from "../CodeBoxCodeView";
import TabCodeBox from "./TabCodeBox";
/** Represents code view of tab code box. */
declare class TabCodeBoxCodeView extends CodeBoxCodeView<TabCodeBox> {
/**
* Returns position of code view button.
* @returns Position of code view button starting from 0.
*/
getButtonPosition(): number | null;
/**
* Changes position of code view 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 code view button swapped.
* @returns Indicates whether position has been successfully changed.
*/
setButtonPosition(position: number): boolean;
}
export default TabCodeBoxCodeView;