@jirkasa/code-box
Version:
Showcase code samples on the web with a container that lets users select and display different samples.
19 lines (18 loc) • 654 B
TypeScript
import FileButton from "./FileButton";
/** Represents file button as anchor element. */
declare abstract class ElementFileButton extends FileButton {
/** HTML anchor element. */
protected buttonElement: HTMLAnchorElement;
/**
* Creates new file button.
* @param downloadLink Download link (or null for no download).
*/
constructor(downloadLink?: string | null);
appendTo(container: HTMLElement): void;
detach(): void;
setDownloadLink(downloadLink: string | null): void;
getDownloadLink(): string | null;
enableTabNavigation(): void;
disableTabNavigation(): void;
}
export default ElementFileButton;