projects/dvk/src/lib/dynamic-animations/state-css-mapper/state-css-mapper.model.ts
The shape of an object that can map string state names to CSS classes.
Properties |
add |
add:
|
Type : function
|
Add the css class defined by the StateCSSMap for the given state. |
destroy |
destroy:
|
Type : function
|
Release the references used by the closure. |
remove |
remove:
|
Type : function
|
Remove the css class defined by the StateCSSMap for the given state. |
removeAll |
removeAll:
|
Type : function
|
Remove all css classes defined by the StateCSSMap |
export interface StateCSSMapper {
/**
* Remove the css class defined by the {@link StateCSSMap}
* for the given state.
*/
remove: (state:string)=>void;
/**
* Remove all css classes defined by the {@link StateCSSMap}
*/
removeAll: ()=>void;
/**
* Add the css class defined by the {@link StateCSSMap}
* for the given state.
*/
add: (state:string)=> void;
/**
* Release the references used by the closure.
*/
destroy: ()=> void;
}