Skip to content
Snippets Groups Projects
callbacks.ts 467 B
Newer Older
Fabio Proietti's avatar
Fabio Proietti committed
class CallbackManager {
Fabio Proietti's avatar
Fabio Proietti committed
    constructor() {
    }
    public showElement(elementID: string, show: boolean): void {
Fabio Proietti's avatar
Fabio Proietti committed
        if (show) {
            document.getElementById(elementID).style.display = "inline";
Fabio Proietti's avatar
Fabio Proietti committed
        else {
            document.getElementById(elementID).style.display = "none";
Fabio Proietti's avatar
Fabio Proietti committed
    public closeBootstrapModel(elementID: string): void {
        document.getElementById(elementID).click();
Fabio Proietti's avatar
Fabio Proietti committed

export { CallbackManager };