Toolbox Feature Suppression via Custom Properties

How do I go about suppressing certain features of a toolbox component based on the selected custom property value?  For example, if a custom property is set to "true", I want a certain feature to be active, otherwise, if it is set to "false", I want the feature to be suppressed.

Similarly, how does the cosmetic thread feature of toolbox components actually work?  How would I implement this in a new custom toolbox component?

SolidworksToolbox