diff --git a/src/TMS.ts b/src/TMS.ts index d1808f9..3cbfcfa 100644 --- a/src/TMS.ts +++ b/src/TMS.ts @@ -86,6 +86,16 @@ export function appendCustomClass(name:string, css:any = {}){ } +/** + * Remove custom class + * @param name custom class name +*/ +export function removeCustomClass(name:string){ + if (getElement(`TMS_JS_CLASS_${name}`) !== null){ + removeDOM(`TMS_JS_CLASS_${name}`); + } +} + /** * Apply element CSS * @param elementId DOM ID target