delCategory
The delCategory
method deletes a category configuration.
delCategory(categoryId: string): Manager
Type | Description | |
---|---|---|
categoryId | string | The |
returns | Manager | A reference to the |
Example
This example creates a category called network
which is then deleted.
import {createManager} from 'tinytick';
const manager = createManager();
manager.setCategory('network', {maxDuration: 5000});
console.log(manager.getCategoryIds());
// -> ['network']
manager.delCategory('network');
console.log(manager.getCategoryIds());
// -> []
Since
v1.0.0