Alchemy/docs/articles/en/attributes/disable-if.md
2024-02-20 14:49:47 +09:00

642 B

Disable If Attribute

If the boolean value of the target member is true, the field becomes disabled.

img

img

public bool isDisabled;

public bool IsDisabled => isDisabled;
public bool IsDisabledMethod() => isDisabled;

[DisableIf("isDisabled")]
public int disableIfField;

[DisableIf("IsDisabled")]
public int disableIfProperty;

[DisableIf("IsDisabledMethod")]
public int disableIfMethod;
Parameter Description
Condition The name of the field, property, or method used for condition evaluation.