decla-red/frontend/src/scripts/helper/show.ts
2020-10-24 11:02:44 +02:00

7 lines
208 B
TypeScript

export const show = (e: HTMLElement, useDisplay = false, normalDisplayValue?: string) => {
if (useDisplay) {
e.style.display = normalDisplayValue!;
} else {
e.style.visibility = 'inherit';
}
};