API reference

ShowWhenAttribute Class

Extends PropertyAttribute
Attribute used to show or hide a field depending on certain conditions.

Constructors

ShowWhenAttribute ( conditionFieldName )
Attribute used to show or hide the Field depending on certain conditions.
Signature
ShowWhenAttribute(string conditionFieldName)
Parameters
conditionFieldName: string  Name of the bool condition Field
ShowWhenAttribute ( conditionFieldName , compareValue )
Attribute used to show or hide the Field depending on certain conditions.
Signature
ShowWhenAttribute(string conditionFieldName, object compareValue=null)
Parameters
conditionFieldName: string  Name of the Field to compare (bool, enum, int or float)
compareValue: object  Value to compare
ShowWhenAttribute ( conditionFieldName , compareValueArray )
Attribute used to show or hide the Field depending on certain conditions.
Signature
ShowWhenAttribute(string conditionFieldName, object[] compareValueArray=null)
Parameters
conditionFieldName: string  Name of the Field to compare (bool, enum, int or float)
compareValueArray: object[]  Array of values to compare (only for enums)

Fields

CompareValue : readonly object
Value to compare against.
Signature
readonly object CompareValue
CompareValueArray : readonly object[]
Multiple values to compare against.
Signature
readonly object [] CompareValueArray
ConditionFieldName : readonly string
Name of the field.
Signature
readonly string ConditionFieldName