Skip to content

Commit

Permalink
Implement removeCustomClass function
Browse files Browse the repository at this point in the history
  • Loading branch information
themitosan committed Aug 16, 2023
1 parent e59b375 commit 89a3146
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/TMS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89a3146

Please sign in to comment.