[EnableIf]

Attribute enables the field only when the expression evaluates to true.

Parameters

Parameter Name
Arguments
Description

expression

string

Boolean expression. Field is enabled when true.

Examples

public bool enableField;

[EnableIf("enableField")]
public string text;

[EnableIf("@this.value > 10")]
public string message;

Last updated