remove
title: Remove icon from icon set
types:
IconSet: './index.md'
SVG: '../svg/index.md'
remove()
This function is part of [type]IconSet class in Iconify Tools.
Function [func]remove() deletes an icon.
Usage
Function has the following parameters:
[type]name,[type]string. Icon name.[type]removeDependencies,[type]boolean | string. Optional, default istrue. What to do with aliases and variations that use removed icon as parent icon.
Function returns [type]number of removed items.
Possible values for [prop]removeDependencies property:
trueremoves icon, all aliases and variations.falseremoves only icon, does not change aliases and variations.[type]stringremoves icon, changes[prop]parentproperty for aliases and variations to provided value.
Example
src: libraries/tools/icon-set/remove.ts
title: 'example.ts'
extra:
- src: libraries/tools/icon-set/remove.json
title: 'Result:'
这篇文档对你有帮助吗?
谢谢你的反馈!