export interface HiddenInputConf { container: HTMLElement; onSet: () => void; buttonOnLeft?: boolean; customContainerHTML?: string; input?: string; clickAwayShouldSave?: boolean; }; export class HiddenInputField { public static editClass = "ri-edit-line"; public static saveClass = "ri-check-line"; private _c: HiddenInputConf; private _input: HTMLInputElement; private _content: HTMLElement private _toggle: HTMLElement; previous: string; constructor(c: HiddenInputConf) { this._c = c; if (!(this._c.customContainerHTML)) { this._c.customContainerHTML = ``; } if (!(this._c.input)) { this._c.input = ``; } this._c.container.innerHTML = `