Constructor GhostComponentVariationAttribute
GhostComponentVariationAttribute(Type, string, bool)
Initialize and declare the variant for a given component type. We can't constrain on a specific interface, thus, the validation is done at compile time in the constructor (for now).
Declaration
public GhostComponentVariationAttribute(Type componentType, string displayName = null, bool isTestVariant = false)
Parameters
Type | Name | Description |
---|---|---|
Type | componentType | |
string | displayName | |
bool | isTestVariant |